Method | Description | |
---|---|---|
Atc ( |
Creates a new instance of this system.
|
|
Elapse ( |
Is called every frame.
|
|
GetAtcSpeedFromLimit ( ) : double |
Gets the ATC speed from the current and upcoming speed limits.
|
|
GetAtcSpeedFromTrain ( ) : double |
Gets the ATC speed from the distance to the preceding train if operating in compatibility ATC mode.
|
|
GetCurrentAtcSpeed ( ) : double |
Gets the current ATC speed, or -1 if ATC is not available. In emergency operation mode, returns 15 km/h.
|
|
HornBlow ( HornTypes type ) : void |
Is called when a horn is played or when the music horn is stopped.
|
|
Initialize ( InitializationModes mode ) : void |
Is called when the system should initialize.
|
|
KeyDown ( VirtualKeys key ) : void |
Is called when a key is pressed.
|
|
KeyUp ( VirtualKeys key ) : void |
Is called when a key is released.
|
|
SetBeacon ( |
Is called when a beacon is passed.
|
|
SetBrake ( int brakeNotch ) : void |
Is called when the driver changes the brake notch.
|
|
SetPower ( int powerNotch ) : void |
Is called when the driver changes the power notch.
|
|
SetReverser ( int reverser ) : void |
Is called when the driver changes the reverser.
|
|
SetSignal ( |
Is called to inform about signals.
|
|
ShouldSwitchToAtc ( ) : bool |
Whether the driver should switch to ATC. This returns false if already operating in ATC.
|
|
ShouldSwitchToAts ( ) : bool |
Whether the driver should switch to ATS. This returns false if already operating in ATS.
|