C# Class CrewChiefV3.NoisyCartesianCoordinateSpotter

Exibir arquivo Open project: mrbelowski/r3e_crewchief_v3

Public Methods

Method Description
NoisyCartesianCoordinateSpotter ( AudioPlayer audioPlayer, System.Boolean initialEnabledState, float carLength, float carWidth, float trackWidth, float maxClosingSpeed ) : System
clearState ( ) : void
triggerInternal ( float playerRotationInRadians, float currentPlayerPosition, float playerSpeed, List opponentSpeeds, List currentOpponentPositions ) : void

Private Methods

Method Description
getNextMessage ( int carsOnLeftCount, int carsOnRightCount, System.DateTime now ) : void
getSide ( float playerRotationInRadians, float playerX, float playerY, float oppponentX, float opponentY, System.Boolean isOpponentSpeedInRange ) : Side
messageIsValid ( NextMessageType nextMessageType, int carsOnLeftCount, int carsOnRightCount ) : System.Boolean
opponentPositionInRange ( float opponentPosition, float playerPosition ) : System.Boolean
opponentSpeedInRange ( float opponentSpeed, float playerSpeed ) : System.Boolean
playNextMessage ( int carsOnLeftCount, int carsOnRightCount, System.DateTime now ) : void

Method Details

NoisyCartesianCoordinateSpotter() public method

public NoisyCartesianCoordinateSpotter ( AudioPlayer audioPlayer, System.Boolean initialEnabledState, float carLength, float carWidth, float trackWidth, float maxClosingSpeed ) : System
audioPlayer AudioPlayer
initialEnabledState System.Boolean
carLength float
carWidth float
trackWidth float
maxClosingSpeed float
return System

clearState() public method

public clearState ( ) : void
return void

triggerInternal() public method

public triggerInternal ( float playerRotationInRadians, float currentPlayerPosition, float playerSpeed, List opponentSpeeds, List currentOpponentPositions ) : void
playerRotationInRadians float
currentPlayerPosition float
playerSpeed float
opponentSpeeds List
currentOpponentPositions List
return void