]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/trainrouter.h
Apply all planned routes at once
[r2c2.git] / source / libr2c2 / trainrouter.h
index 80908d51b863ab63294f35df5dd994d197480ab2..457120944627cb29b059e4622b787f2389927578 100644 (file)
@@ -79,6 +79,7 @@ public:
        const Route *get_route() const;
        unsigned get_current_sequence() const { return current_sequence; }
 private:
+       void use_planned_route();
        void route_changed();
 
 public:
@@ -108,7 +109,9 @@ private:
        bool is_valid_for_track(const Route &, const TrackIter &) const;
        bool advance_to_track(RouteList::iterator &, const TrackIter &);
 
+       static void get_routers(Layout &, std::vector<TrainRouter *> &);
        static void start_planning(Layout &);
+       static void apply_plan(Layout &, TrainRoutePlanner &);
 };
 
 } // namespace R2C2