C# Class CrewChiefV3.PCars.PCarsGameStateMapper

Inheritance: GameStateMapper
Exibir arquivo Open project: mrbelowski/r3e_crewchief_v3 Class Usage Examples

Public Methods

Method Description
PCarsGameStateMapper ( ) : System
getParticipantDataForName ( pCarsAPIParticipantStruct pCarsAPIParticipantStructArray, String name, int index ) : pCarsAPIParticipantStruct
getPlayerDataStruct ( pCarsAPIParticipantStruct pCarsAPIParticipantStructArray, int viewedParticipantIndex ) : pCarsAPIParticipantStruct>.Tuple
mapToGameStateData ( Object memoryMappedFileStruct, GameStateData previousGameState ) : GameStateData
mapToSessionType ( Object memoryMappedFileStruct ) : SessionType
setSpeechRecogniser ( SpeechRecogniser speechRecogniser ) : void
versionCheck ( Object memoryMappedFileStruct ) : void

Private Methods

Method Description
createOpponentData ( pCarsAPIParticipantStruct participantStruct, System.Boolean loadDriverName ) : OpponentData
getMean ( List data ) : float
getTyreCondition ( float percentWear ) : TyreCondition
mapToAeroDamageLevel ( float aeroDamage ) : DamageLevel
mapToEngineDamageLevel ( float engineDamage ) : DamageLevel
mapToFlagEnum ( uint highestFlagColour ) : FlagEnum
mapToPitWindow ( GameStateData currentGameState, uint pitSchedule, uint pitMode ) : PitWindow
mapToSessionPhase ( SessionType sessionType, uint sessionState, uint raceState, int numParticipants, System.Boolean leaderHasFinishedRace, SessionPhase previousSessionPhase, float sessionTimeRemaining, float sessionRunTime ) : SessionPhase
upateOpponentData ( OpponentData opponentData, int racePosition, int completedLaps, int sector, System.Boolean isInPits, float sessionRunningTime, float secondsSinceLastUpdate, float currentWorldPosition, float previousWorldPosition, float previousSpeed, float worldRecordLapTime, float distanceRoundTrack, System.Boolean isRaining, float trackTemp, float airTemp ) : void

Method Details

PCarsGameStateMapper() public method

public PCarsGameStateMapper ( ) : System
return System

getParticipantDataForName() public static method

public static getParticipantDataForName ( pCarsAPIParticipantStruct pCarsAPIParticipantStructArray, String name, int index ) : pCarsAPIParticipantStruct
pCarsAPIParticipantStructArray pCarsAPIParticipantStruct
name String
index int
return pCarsAPIParticipantStruct

getPlayerDataStruct() public static method

public static getPlayerDataStruct ( pCarsAPIParticipantStruct pCarsAPIParticipantStructArray, int viewedParticipantIndex ) : pCarsAPIParticipantStruct>.Tuple
pCarsAPIParticipantStructArray pCarsAPIParticipantStruct
viewedParticipantIndex int
return pCarsAPIParticipantStruct>.Tuple

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