X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibmarklin%2Faicontrol.h;h=462a114ac00bbe2cd04078fd0dad3461a07a7abd;hb=9b05c573a38639827697fe393d55b7c76f5bde45;hp=bcd6cbba6405ea6fef17d2ae078c268f4c10cc71;hpb=77f8c0e033b9b5e7085de5d22a62128a996a5b2a;p=r2c2.git diff --git a/source/libmarklin/aicontrol.h b/source/libmarklin/aicontrol.h index bcd6cbb..462a114 100644 --- a/source/libmarklin/aicontrol.h +++ b/source/libmarklin/aicontrol.h @@ -9,28 +9,27 @@ Distributed under the GPL #define LIBMARKLIN_AICONTROL_H_ #include -#include "controlmodel.h" -#include "traincontrol.h" +#include "controller.h" namespace Marklin { class Train; -class AIControl: public ControlModel, public sigc::trackable +class AIControl: public Controller, public sigc::trackable { private: Train &train; - ControlModel *next_model; - TrainControl target_speed; + Controller *next_ctrl; + Control target_speed; bool blocked; bool approach; public: - AIControl(Train &, ControlModel *); + AIControl(Train &, Controller *); virtual ~AIControl(); virtual void set_control(const std::string &, float); - virtual const TrainControl &get_control(const std::string &) const; + virtual const Control &get_control(const std::string &) const; virtual float get_speed() const; virtual bool get_reverse() const; @@ -39,7 +38,7 @@ public: virtual void tick(const Msp::Time::TimeDelta &); private: - void control_changed(const TrainControl &); + void control_changed(const Control &); void arrived(); };