C# Class CrewChiefV3.PCars.PCarsSpotter

Inheritance: Spotter
Mostrar archivo Open project: mrbelowski/r3e_crewchief_v3

Public Methods

Method Description
PCarsSpotter ( AudioPlayer audioPlayer, System.Boolean initialEnabledState ) : System
clearState ( ) : void
disableSpotter ( ) : void
enableSpotter ( ) : void
pause ( ) : void
trigger ( Object lastStateObj, Object currentStateObj ) : void
unpause ( ) : void

Private Methods

Method Description
getNextMessage ( int carsOnLeftCount, int carsOnRightCount, System.DateTime now ) : void
getSide ( float playerRotation, float playerX, float playerY, float oppponentX, float opponentY ) : Side
messageIsValid ( NextMessageType nextMessageType, int carsOnLeftCount, int carsOnRightCount ) : System.Boolean
opponentIsRacing ( float currentOpponentX, float currentOpponentY, float previousOpponentX, float previousOpponentY, pCarsAPIParticipantStruct playerData, pCarsAPIParticipantStruct previousPlayerData, float interval ) : System.Boolean
playNextMessage ( int carsOnLeftCount, int carsOnRightCount, System.DateTime now ) : void

Method Details

PCarsSpotter() public method

public PCarsSpotter ( AudioPlayer audioPlayer, System.Boolean initialEnabledState ) : System
audioPlayer AudioPlayer
initialEnabledState System.Boolean
return System

clearState() public method

public clearState ( ) : void
return void

disableSpotter() public method

public disableSpotter ( ) : void
return void

enableSpotter() public method

public enableSpotter ( ) : void
return void

pause() public method

public pause ( ) : void
return void

trigger() public method

public trigger ( Object lastStateObj, Object currentStateObj ) : void
lastStateObj Object
currentStateObj Object
return void

unpause() public method

public unpause ( ) : void
return void