]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/simplecontroller.h
Rename the project to R²C²
[r2c2.git] / source / libmarklin / simplecontroller.h
diff --git a/source/libmarklin/simplecontroller.h b/source/libmarklin/simplecontroller.h
deleted file mode 100644 (file)
index 9b0df26..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/* $Id$
-
-This file is part of the MSP Märklin suite
-Copyright © 2010  Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
-#ifndef LIBMARKLIN_SIMPLECONTROLLER_H_
-#define LIBMARKLIN_SIMPLECONTROLLER_H_
-
-#include <string>
-#include "controller.h"
-
-namespace Marklin {
-
-class SimpleController: public Controller
-{
-private:
-       Control target_speed;
-       Control reverse;
-       float accel;
-       float speed;
-
-public:
-       SimpleController();
-
-       virtual void set_control(const std::string &, float);
-       virtual const Control &get_control(const std::string &) const;
-
-       virtual float get_speed() const { return speed; }
-       virtual bool get_reverse() const { return reverse.value; }
-       virtual float get_braking_distance() const;
-
-       virtual void tick(const Msp::Time::TimeDelta &);
-};
-
-} // namespace Marklin
-
-#endif