X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Ftimetable.h;h=f8fc8a0ed97346ca6a2eefc0c1f3f547088febd4;hb=59bae8acd679127602cf35d22bcd37e316a5a056;hp=84a39cd9c92d04de396638baa84c0f9bc999fe07;hpb=5c1ddd2f213af3fea15237e02f7da112c0abba36;p=r2c2.git diff --git a/source/libr2c2/timetable.h b/source/libr2c2/timetable.h index 84a39cd..f8fc8a0 100644 --- a/source/libr2c2/timetable.h +++ b/source/libr2c2/timetable.h @@ -5,11 +5,12 @@ #include #include #include -#include "block.h" +#include "sensor.h" #include "trainai.h" namespace R2C2 { +class Block; class Track; class Train; class Zone; @@ -100,7 +101,7 @@ private: Block &get_sensor(unsigned); Track &get_turnout(unsigned); Zone &get_zone(const std::string &); - void block_state_changed(Block &, Block::State); + void sensor_state_changed(Sensor &, Sensor::State); void block_reserved(Block &, Train *); void train_advanced(Block &); void event(TrainAI &, const Message &);