X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Ftimetable.h;h=da16d3c0d488c23cffc7d3879fcf2c367e611141;hb=dfd78df0c79d03404d1f2e70c08b643655455725;hp=b67e5fb3c2baa4761b639dae6a55e3902795e014;hpb=9ad36841021cdd5c7f14d52e946d8ecdb602cf78;p=r2c2.git diff --git a/source/libr2c2/timetable.h b/source/libr2c2/timetable.h index b67e5fb..da16d3c 100644 --- a/source/libr2c2/timetable.h +++ b/source/libr2c2/timetable.h @@ -7,7 +7,7 @@ namespace R2C2 { class Layout; -class Zone; +class TrackChain; class Timetable: public TrainAI { @@ -27,7 +27,8 @@ public: enum RowType { ARRIVE = 1, - DEPART + DEPART, + THROUGH }; struct Row @@ -41,12 +42,13 @@ public: Loader(Row &, Layout &); private: - void zone(const std::string &, unsigned); + void block(unsigned); void time(Msp::Time::RawTime); + void zone(const std::string &, unsigned); }; RowType type; - Zone *zone; + TrackChain *target; Msp::Time::TimeDelta time; Row(); @@ -82,6 +84,7 @@ private: void check_update(std::list::const_iterator); void update_route(); void event(TrainAI &, const Message &); + void record_time(); }; } // namespace R2C2