X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Ftimetable.h;h=b2f4fae1e2dd3ddf2cd70385dd8752b55d09817b;hb=e0a4caf7d4ef980a90cd03117705310e0469e440;hp=1bf8f4fe6c0b000db6823edb1f699dc369010682;hpb=d3a7a9e9ad694d52ccca8b6038501772fdc1dfd5;p=r2c2.git diff --git a/source/libr2c2/timetable.h b/source/libr2c2/timetable.h index 1bf8f4f..b2f4fae 100644 --- a/source/libr2c2/timetable.h +++ b/source/libr2c2/timetable.h @@ -12,11 +12,11 @@ Distributed under the GPL #include #include #include +#include "block.h" #include "trainai.h" namespace R2C2 { -class Block; class Track; class Train; class Zone; @@ -108,7 +108,7 @@ 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();