X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Ftimetable.h;h=92a4d65fa92b5b15f2674a2df22e67853d008366;hb=dec294d40194a640e7b4bccf20dd1baa4a87038c;hp=1bf8f4fe6c0b000db6823edb1f699dc369010682;hpb=d3a7a9e9ad694d52ccca8b6038501772fdc1dfd5;p=r2c2.git diff --git a/source/libr2c2/timetable.h b/source/libr2c2/timetable.h index 1bf8f4f..92a4d65 100644 --- a/source/libr2c2/timetable.h +++ b/source/libr2c2/timetable.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of R²C² -Copyright © 2010-2011 Mikkosoft Productions, Mikko Rasa -Distributed under the GPL -*/ - #ifndef LIBR2C2_TIMETABLE_H_ #define LIBR2C2_TIMETABLE_H_ @@ -12,11 +5,11 @@ Distributed under the GPL #include #include #include +#include "block.h" #include "trainai.h" namespace R2C2 { -class Block; class Track; class Train; class Zone; @@ -36,7 +29,6 @@ public: void route(const std::string &); void reverse(); void speed(unsigned); - void tag(const std::string &); void travel_to(unsigned); void travel_past(unsigned); void wait(unsigned); @@ -108,10 +100,10 @@ private: Track &get_sensor(unsigned); Track &get_turnout(unsigned); Zone &get_zone(const std::string &); - void sensor_event(unsigned, bool); + void block_state_changed(Block &, Block::State); void block_reserved(Block &, Train *); void train_advanced(Block &); - void train_arrived(); + void event(TrainAI &, const Message &); }; } // namespace R2C2