C# Class CrewChiefV3.PCars.PCarsSpotter

Inheritance: Spotter
Afficher le fichier Open project: mrbelowski/r3e_crewchief_v3

Méthodes publiques

Méthode 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

Méthode 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 méthode

public PCarsSpotter ( AudioPlayer audioPlayer, System.Boolean initialEnabledState ) : System
audioPlayer AudioPlayer
initialEnabledState System.Boolean
Résultat System

clearState() public méthode

public clearState ( ) : void
Résultat void

disableSpotter() public méthode

public disableSpotter ( ) : void
Résultat void

enableSpotter() public méthode

public enableSpotter ( ) : void
Résultat void

pause() public méthode

public pause ( ) : void
Résultat void

trigger() public méthode

public trigger ( Object lastStateObj, Object currentStateObj ) : void
lastStateObj Object
currentStateObj Object
Résultat void

unpause() public méthode

public unpause ( ) : void
Résultat void