X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibmarklin%2Ftrain.h;h=8087745f3dd29f03b9d3b3bfb4eec75859c246e8;hb=d3907f4b0e60f246a53201b93b06e86062f1b48a;hp=18ad6a1e1407d807330aedd359e686eb30d2e70a;hpb=c5b6976004967e9e0a3c43ad025ebfa096894f3f;p=r2c2.git diff --git a/source/libmarklin/train.h b/source/libmarklin/train.h index 18ad6a1..8087745 100644 --- a/source/libmarklin/train.h +++ b/source/libmarklin/train.h @@ -71,6 +71,7 @@ private: const LocoType &loco_type; unsigned address; std::string name; + int priority; std::vector vehicles; std::list cur_blocks; std::list rsv_blocks; @@ -104,6 +105,8 @@ public: unsigned get_address() const { return address; } void set_name(const std::string &); const std::string &get_name() const { return name; } + void set_priority(int); + int get_priority() const { return priority; } ControlModel &get_control() const { return *control; } Vehicle &get_vehicle(unsigned);