CompetitorController Class Reference

Controller for all competitors: players and AI agent controlled characters. More...

List of all members.

Public Member Functions

void Awake ()
 Validates start-up game state.
void FixedUpdate ()
 Controls the game object to which this controller is assigned.
bool IncreaseBoost (float increment)
 Increases the boost by the specified amount.
void Crash ()
 Crashes the player and begins the recovery process.
void OnAttack (CompetitorController other)
 Triggered when this competitor is attacked.
void OnCollect (Token token)
 Triggered when this competitor picks up a token.
void OnOutOfBounds (OutOfBoundsTrigger trigger)
 Triggered when out of bounds.
void OnCheckpointHit (Checkpoint checkpoint)
 Triggered when a checkpoint is reached.

Public Attributes

const float BoostTime = 1.5f
 Minimum time for which to boost.
const float CrashTime = 10
 Time the competitor takes to recover unless sped up by recovery gesture.
const float DrunkTime = 15
 Time the competitor remains drunk.
const float ReplaceTime = 2
 Fade time when out of bounds.
const float FallLimit = 0.2f
 The amount of time off-ground before a fall is detected.
const float AirTimeReset = 5
 Only allow the player to fly for so long before resetting.
const float MaxSteal = 3
 Maximum amount stolen from a player who is hit by another.
Competitor competitor
string xAxis = "Dummy"
string yAxis = "Dummy"
string boostInput = "Dummy"
string attackInput = "Dummy"
bool allowWii = false

Static Public Attributes

static bool Profile = false

Detailed Description

Controller for all competitors: players and AI agent controlled characters.


Member Function Documentation

void CompetitorController.Awake (  ) 

Validates start-up game state.

void CompetitorController.Crash (  ) 

Crashes the player and begins the recovery process.

void CompetitorController.FixedUpdate (  ) 

Controls the game object to which this controller is assigned.

bool CompetitorController.IncreaseBoost ( float  increment  ) 

Increases the boost by the specified amount.

void CompetitorController.OnAttack ( CompetitorController  other  ) 

Triggered when this competitor is attacked.

void CompetitorController.OnCheckpointHit ( Checkpoint  checkpoint  ) 

Triggered when a checkpoint is reached.

void CompetitorController.OnCollect ( Token  token  ) 

Triggered when this competitor picks up a token.

void CompetitorController.OnOutOfBounds ( OutOfBoundsTrigger  trigger  ) 

Triggered when out of bounds.


Member Data Documentation

Only allow the player to fly for so long before resetting.

const float CompetitorController.BoostTime = 1.5f

Minimum time for which to boost.

Time the competitor takes to recover unless sped up by recovery gesture.

Time the competitor remains drunk.

const float CompetitorController.FallLimit = 0.2f

The amount of time off-ground before a fall is detected.

Maximum amount stolen from a player who is hit by another.

Fade time when out of bounds.


The documentation for this class was generated from the following file:

Generated on Fri Aug 21 09:09:58 2009 for Hamlington Underground Racing Association by  doxygen 1.6.0