Skip to main content

Module train_state

Module train_state 

Source

Constants§

ARRIVE_SIGNAL
Braking before a rail signal.
ARRIVE_STATION
Braking before a station.
DESTINATION_FULL
Same as no_path but all candidate train stops are full
MANUAL_CONTROL
Can move if user explicitly sits in and rides the train.
MANUAL_CONTROL_STOP
Switched to manual control and has to stop.
NO_PATH
Has no path and is stopped.
NO_SCHEDULE
Doesn’t have anywhere to go.
ON_THE_PATH
Normal state – following the path.
WAIT_SIGNAL
Waiting at a signal.
WAIT_STATION
Waiting at a station.