namespace R2C2 {
class Layout;
-class Zone;
+class TrackChain;
class Timetable: public TrainAI
{
enum RowType
{
ARRIVE = 1,
- DEPART
+ DEPART,
+ THROUGH
};
struct Row
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();
void check_update(std::list<Row>::const_iterator);
void update_route();
void event(TrainAI &, const Message &);
+ void record_time();
};
} // namespace R2C2