]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/train.h
Ignore the click that causes manipulator to finish
[r2c2.git] / source / libmarklin / train.h
index d637cc03b03735d67e59fa3f7aa7f70b5c7c97f4..5f852564074f37b5247c29f0e04a8974e569341f 100644 (file)
@@ -81,6 +81,7 @@ private:
        std::vector<Vehicle *> vehicles;
        BlockList blocks;
        BlockList::iterator cur_blocks_end;
+       BlockList::iterator clear_blocks_end;
        Block *pending_block;
        bool reserving;
        bool advancing;
@@ -157,10 +158,11 @@ private:
        void loco_speed_event(unsigned, unsigned, bool);
        void loco_func_event(unsigned, unsigned, bool);
        void sensor_event(unsigned, bool);
-       void turnout_event(unsigned, bool);
+       void turnout_path_changed(Track &);
        void halt_event(bool);
        void block_reserved(const Block &, const Train *);
-       unsigned reserve_more();
+       void reserve_more();
+       void check_turnout_paths(bool);
        float get_reserved_distance_until(const Block *, bool) const;
        float get_real_speed(unsigned) const;
        unsigned find_speed(float) const;