X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Flibmarklin%2Fsimplecontroller.h;fp=source%2Flibmarklin%2Fsimplecontroller.h;h=0000000000000000000000000000000000000000;hb=1ff06c5bc46a677fa389ef86c6b26664368f1653;hp=9b0df261f3495b6f46442e28c963b462fff71734;hpb=9b05c573a38639827697fe393d55b7c76f5bde45;p=r2c2.git diff --git a/source/libmarklin/simplecontroller.h b/source/libmarklin/simplecontroller.h deleted file mode 100644 index 9b0df26..0000000 --- a/source/libmarklin/simplecontroller.h +++ /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 -#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