X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Ftrain.h;h=16e67a43986776890b17734b54c9c15f91461478;hb=70919a9e222568a8ffe610cd5320f3171f298f90;hp=3aaf6b14137cf8401489c39918fbba135107a011;hpb=ab64a17394440c3cb18d0b30d75fb4ed6297a6b4;p=r2c2.git diff --git a/source/libr2c2/train.h b/source/libr2c2/train.h index 3aaf6b1..16e67a4 100644 --- a/source/libr2c2/train.h +++ b/source/libr2c2/train.h @@ -51,6 +51,7 @@ private: const VehicleType &loco_type; unsigned address; std::string protocol; + unsigned loco_id; std::string name; const Train *preceding_train; std::vector vehicles; @@ -112,7 +113,7 @@ public: return 0; } - void place(const BlockIter &); + bool place(const BlockIter &); void unplace(); bool is_placed() const { return !allocator.empty(); } void stop_at(Block *);