Controller for all competitors: players and AI agent controlled characters. More...
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 |
Controller for all competitors: players and AI agent controlled characters.
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.
const float CompetitorController.AirTimeReset = 5 |
Only allow the player to fly for so long before resetting.
const float CompetitorController.BoostTime = 1.5f |
Minimum time for which to boost.
const float CompetitorController.CrashTime = 10 |
Time the competitor takes to recover unless sped up by recovery gesture.
const float CompetitorController.DrunkTime = 15 |
Time the competitor remains drunk.
const float CompetitorController.FallLimit = 0.2f |
The amount of time off-ground before a fall is detected.
const float CompetitorController.MaxSteal = 3 |
Maximum amount stolen from a player who is hit by another.
const float CompetitorController.ReplaceTime = 2 |
Fade time when out of bounds.