C# Class Plugin.AtsP

Represents ATS-P.
Inheritance: Device
Show file Open project: leezer3/OpenBVE Class Usage Examples

Private Methods

Method Description
AtsP ( Train train ) : System

Creates a new instance of this system.

Elapse ( ElapseData data, bool &blocking ) : void

Is called every frame.

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 ( BeaconData beacon ) : void

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 ( SignalData signal ) : void

Is called to inform about signals.

SwitchToP ( States state ) : void

Switches to ATS-P.

SwitchToSx ( ) : void

Changes to standby mode and continues in ATS-Sx.

UpdateCompatibilityTemporarySpeedPattern ( ) : void

Updates the compatibility temporary speed pattern from the list of known speed limits.