C# Class OpenBve.Game

显示文件 Open project: leezer3/OpenBVE Class Usage Examples

Private Methods

Method Description
AddBlackBoxEntry ( BlackBoxEventToken EventToken ) : void
AddDebugMessage ( string text, double duration ) : void
AddMarker ( Textures Texture ) : void
AddMarker ( int TextureIndex ) : void
AddMessage ( string Text, MessageDependency Depencency, Interface Mode, MessageColor Color, double Timeout ) : void

Adds a message to the in-game interface render queue

AddScore ( int Value, ScoreTextToken TextToken, double Duration, bool Count = true ) : void
AddScore ( string Text, double Duration ) : void
ApplyPointOfInterest ( int Value, bool Relative ) : bool
CalculateSeaLevelConstants ( ) : void
GetAirDensity ( double AirPressure, double AirTemperature ) : double
GetAirPressure ( double Elevation, double AirTemperature ) : double
GetAirTemperature ( double Elevation ) : double
GetPluginSignal ( TrainManager train, int section ) : SignalData

Gets the signal data for a plugin.

GetSpeedOfSound ( double AirDensity ) : double

Calculates the speed of sound for a given air density

GetSpeedOfSound ( double AirPressure, double AirTemperature ) : double
GetStopIndex ( int StationIndex, int Cars ) : int
PlayerStopsAtStation ( int StationIndex ) : bool

Indicates whether the player's train stops at a station.

RemoveMarker ( Textures Texture ) : void
RemoveMarker ( int TextureIndex ) : void
Reset ( ) : void
Reset ( bool ResetLogs ) : void

Call this function to reset the game

StopsAtStation ( int StationIndex, TrainManager Train ) : bool

Indicates whether a train stops at a station.

UpdateAllSections ( ) : void
UpdateBlackBox ( ) : void
UpdateMessages ( ) : void
UpdatePluginSections ( TrainManager train ) : void

Updates the plugin to inform about sections.

UpdateScore ( double TimeElapsed ) : void

This method should be called once a frame to update the player's score

UpdateScoreMessages ( double TimeElapsed ) : void
UpdateSection ( int SectionIndex ) : void