]> 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 7c5bf5d27376c9b045c72c5aff29c11337729cc6..bcd6cbba6405ea6fef17d2ae078c268f4c10cc71 100644 (file)
@@ -23,6 +23,7 @@ private:
        ControlModel *next_model;
        TrainControl target_speed;
        bool blocked;
+       bool approach;
 
 public:
        AIControl(Train &, ControlModel *);
@@ -32,11 +33,13 @@ public:
        virtual const TrainControl &get_control(const std::string &) const;
 
        virtual float get_speed() const;
+       virtual bool get_reverse() const;
        virtual float get_braking_distance() const;
 
        virtual void tick(const Msp::Time::TimeDelta &);
 
 private:
+       void control_changed(const TrainControl &);
        void arrived();
 };