X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Flibmarklin%2Ftrain.h;h=8418d899c5d37980188d12bcc87c38d8dd4ff908;hb=bf17b58ef9013147c616ee4efbd31a4973728e7f;hp=f267263cb9efbfa22cc804c4eb47c50ea5c972d9;hpb=2bb6ce8ada216c0b2caa48f4639d03f2c581098e;p=r2c2.git diff --git a/source/libmarklin/train.h b/source/libmarklin/train.h index f267263..8418d89 100644 --- a/source/libmarklin/train.h +++ b/source/libmarklin/train.h @@ -17,6 +17,7 @@ Distributed under the GPL namespace Marklin { +class ArticleNumber; class Route; class Timetable; class Vehicle; @@ -41,7 +42,7 @@ public: void real_speed(unsigned, float, float); void route(const std::string &); void timetable(); - void vehicle(unsigned); + void vehicle(ArticleNumber); }; sigc::signal signal_name_changed; @@ -134,8 +135,8 @@ public: void set_timetable(Timetable *); Timetable *get_timetable() { return timetable; } - void set_route(const Route *); - void go_to(Track &); + bool set_route(const Route *); + bool go_to(Track &); bool divert(Track &); const Route *get_route() const; void place(Block &, unsigned);