]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/train.h
Handle reversing in a way that allows backing out of a dead end
[r2c2.git] / source / libmarklin / train.h
index 5960c27d16b78164da022a40e0c79e7529647244..18ad6a1e1407d807330aedd359e686eb30d2e70a 100644 (file)
@@ -38,6 +38,7 @@ public:
                void real_speed(unsigned, float, float);
                void route(const std::string &);
                void timetable();
+               void vehicle(unsigned);
        };
 
        sigc::signal<void, const std::string &> signal_name_changed;
@@ -91,6 +92,8 @@ private:
        float travel_dist;
        bool pure_speed;
        std::vector<RealSpeed> real_speed;
+       bool accurate_position;
+       float overshoot_dist;
 
 public:
        Train(Layout &, const LocoType &, unsigned);
@@ -133,6 +136,7 @@ private:
        void loco_func_event(unsigned, unsigned, bool);
        void sensor_event(unsigned, bool);
        void turnout_event(unsigned, bool);
+       void halt_event(bool);
        void block_reserved(const Block &, const Train *);
        unsigned reserve_more();
        float get_real_speed(unsigned) const;