C# Class CrewChiefV3.RaceRoom.R3EGameStateMapper

Inheritance: GameStateMapper
Mostrar archivo Open project: mrbelowski/r3e_crewchief_v3 Class Usage Examples

Public Properties

Property Type Description
playerName String

Public Methods

Method Description
R3EGameStateMapper ( ) : System
getNameFromBytes ( byte name ) : String
isBehindWithinDistance ( float trackLength, float minDistance, float maxDistance, float playerTrackDistance, float opponentTrackDistance ) : System.Boolean
mapToGameStateData ( Object memoryMappedFileStruct, GameStateData previousGameState ) : GameStateData
mapToSessionType ( Object memoryMappedFileStruct ) : SessionType
setSpeechRecogniser ( SpeechRecogniser speechRecogniser ) : void
versionCheck ( Object memoryMappedFileStruct ) : void

Private Methods

Method Description
CheckIsCarRunning ( RaceRoomData shared ) : System.Boolean
createOpponentData ( DriverData participantStruct, String driverName, System.Boolean loadDriverName ) : OpponentData
getOvertakingAids ( RaceRoomShared shared, CarData carClassEnum, int lapsCompleted, SessionType sessionType ) : OvertakingAids
getRacePosition ( String driverName, int oldPosition, int newPosition, System.DateTime now ) : int
getTyreCondition ( float percentWear ) : TyreCondition
getTyreWearPercentage ( float wearLevel ) : float
mapToControlType ( int r3eControlType ) : ControlType
mapToPitWindow ( int r3ePitWindow ) : PitWindow
mapToSessionPhase ( SessionPhase lastSessionPhase, SessionType currentSessionType, float lastSessionRunningTime, float thisSessionRunningTime, int r3eSessionPhase, ControlType controlType, int previousLapsCompleted, int currentLapsCompleted, System.Boolean isCarRunning ) : SessionPhase
mapToTyreType ( int r3eTyreType ) : TyreType
upateOpponentData ( OpponentData opponentData, int racePosition, int unfilteredRacePosition, int completedLaps, int sector, float sectorTime, float completedLapTime, System.Boolean isInPits, System.Boolean lapIsValid, float sessionRunningTime, float secondsSinceLastUpdate, float currentWorldPosition, float previousWorldPosition, float distanceRoundTrack, int tire_type ) : void

Method Details

R3EGameStateMapper() public method

public R3EGameStateMapper ( ) : System
return System

getNameFromBytes() public static method

public static getNameFromBytes ( byte name ) : String
name byte
return String

isBehindWithinDistance() public method

public isBehindWithinDistance ( float trackLength, float minDistance, float maxDistance, float playerTrackDistance, float opponentTrackDistance ) : System.Boolean
trackLength float
minDistance float
maxDistance float
playerTrackDistance float
opponentTrackDistance float
return System.Boolean

mapToGameStateData() public method

public mapToGameStateData ( Object memoryMappedFileStruct, GameStateData previousGameState ) : GameStateData
memoryMappedFileStruct Object
previousGameState CrewChiefV3.GameState.GameStateData
return CrewChiefV3.GameState.GameStateData

mapToSessionType() public method

public mapToSessionType ( Object memoryMappedFileStruct ) : SessionType
memoryMappedFileStruct Object
return SessionType

setSpeechRecogniser() public method

public setSpeechRecogniser ( SpeechRecogniser speechRecogniser ) : void
speechRecogniser SpeechRecogniser
return void

versionCheck() public method

public versionCheck ( Object memoryMappedFileStruct ) : void
memoryMappedFileStruct Object
return void

Property Details

playerName public_oe static_oe property

public static String playerName
return String