]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/aicontrol.h
Change the control system to separate speed and reverse
[r2c2.git] / source / libmarklin / aicontrol.h
index 465d2ab95251f1c5a9fb184d9066886a734debff..bcd6cbba6405ea6fef17d2ae078c268f4c10cc71 100644 (file)
@@ -23,6 +23,7 @@ private:
        ControlModel *next_model;
        TrainControl target_speed;
        bool blocked;
+       bool approach;
 
 public:
        AIControl(Train &, ControlModel *);
@@ -38,7 +39,7 @@ public:
        virtual void tick(const Msp::Time::TimeDelta &);
 
 private:
-       void control_changed(const std::string &, float);
+       void control_changed(const TrainControl &);
        void arrived();
 };