]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/train.h
Reserve two ids for double-address turnouts
[r2c2.git] / source / libmarklin / train.h
index 2b082893b308f02782b5ba5d7415bde7b76e5ffb..02d1d52de1b8751d411bc5aa063300f46d2fb110 100644 (file)
@@ -137,6 +137,7 @@ public:
        void go_to(const Track &);
        const Route *get_route() const { return route; }
        void place(Block &, unsigned);
+       void unplace();
        bool is_placed() const { return !cur_blocks.empty(); }
        bool free_block(Block &);
        int get_entry_to_block(Block &) const;
@@ -156,6 +157,7 @@ private:
        void halt_event(bool);
        void block_reserved(const Block &, const Train *);
        unsigned reserve_more();
+       float get_reserved_distance_until(const Block *, bool) const;
        float get_real_speed(unsigned) const;
        unsigned find_speed(float) const;
        float get_travel_speed() const;