X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibmarklin%2Ftrain.h;h=7039c9ea87d9ec8484ee6b9de6c7d981b0044203;hb=e9653dffd0026fb3c02c91a4c0feca688a86c721;hp=e675c4b8cadba41a749e38464b704a2ee957ad56;hpb=0e691a3893a07dc362c733869760e0d7d1109ea8;p=r2c2.git diff --git a/source/libmarklin/train.h b/source/libmarklin/train.h index e675c4b..7039c9e 100644 --- a/source/libmarklin/train.h +++ b/source/libmarklin/train.h @@ -141,7 +141,7 @@ public: Timetable *get_timetable() { return timetable; } void set_route(const Route *); - void go_to(const Track &); + void go_to(Track &); bool divert(Track &); const Route *get_route() const; void place(Block &, unsigned); @@ -174,9 +174,9 @@ private: void release_blocks(std::list &); void release_blocks(std::list &, std::list::iterator, std::list::iterator); void reverse_blocks(std::list &) const; - bool advance_route(std::list::iterator &, const Track &); - Route *create_lead_route(); - bool is_valid_diversion(const Route &, const Track &, unsigned); + bool advance_route(std::list::iterator &, Track &); + Route *create_lead_route(Route *, const Route *); + bool is_valid_diversion(const Route &, Track &, unsigned); }; } // namespace Marklin