class AIControl: public Controller, public sigc::trackable
{
private:
+ enum State
+ {
+ NORMAL,
+ APPROACH,
+ BLOCKED,
+ FOLLOW
+ };
+
Train &train;
Controller *next_ctrl;
Control target_speed;
- bool blocked;
- bool approach;
+ State state;
public:
AIControl(Train &, Controller *);