X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Ftrain.h;h=ece5b4bb6340351119fe162532a0fbb725198a45;hb=cb4e53ba1b8ea41b978190de6668e9862b9cfea8;hp=03b8b66d3e1e929869431c0ec472853d823dbdaf;hpb=dda1e6c8716b6ac70d63a3f6ff95474a8b8b7336;p=r2c2.git diff --git a/source/libr2c2/train.h b/source/libr2c2/train.h index 03b8b66..ece5b4b 100644 --- a/source/libr2c2/train.h +++ b/source/libr2c2/train.h @@ -5,14 +5,15 @@ #include #include #include -#include "block.h" #include "blockallocator.h" #include "controller.h" +#include "sensor.h" #include "trainai.h" namespace R2C2 { class ArticleNumber; +class Block; class SpeedQuantizer; class Vehicle; class VehicleType; @@ -130,10 +131,10 @@ private: void control_changed(const Controller::Control &); void loco_speed_event(unsigned, unsigned, bool); void loco_func_event(unsigned, unsigned, bool); - void block_state_changed(Block &, Block::State); + void sensor_state_changed(Sensor &, Sensor::State); void halt_event(bool); void block_reserved(const Block &, const Train *); - float get_reserved_distance_until(const Block *, bool) const; + float get_reserved_distance_until(const Block *) const; }; } // namespace R2C2