Competitor Class Reference

Player and AI competitor. More...

List of all members.

Public Types

enum  Status { Racing, Finished, Crashed, OutOfBounds }
 

Used to indicate the player's status via the UI.

More...

Public Member Functions

void Start ()
 Creates the competitor.
void Update ()
 Called each frame to update lap times.
void OnLevelReset ()
 Resets static variables.

Public Attributes

const int MaxBoostLevel = 15
 The full boost bar level.
const int BoostSection = 5
 The number of points in one section of the boost bar.
Color playerColor = new Color(.5f, .5f, .5f, 1)
 The colour to use when displaying UI elements representing this player.
GameObject[] mountPrefabs
 List of prefabs which match the enum GameSettings.MountChoice.
GameObject[] riderPrefabs
 List of prefabs which match the enum GameSettings.RiderChoice.
RaceStatistics raceStatistics
 Race statistics such as lap times, air time, etc.
RaceParameters raceParameters
 Parameters generated from the decisions made for rider and mount.
Status status = Status.Racing
 The status of this competitor.
CompetitorController controller
 The controller for this competitor.

Properties

int id [get]

Detailed Description

Player and AI competitor.

This script should form part of a template prefab spawned for each competitor in the game. It will then produce the next required competitor for the race, based on information in GameSettings.


Member Enumeration Documentation

Used to indicate the player's status via the UI.


Member Function Documentation

void Competitor.OnLevelReset (  ) 

Resets static variables.

void Competitor.Start (  ) 

Creates the competitor.

void Competitor.Update (  ) 

Called each frame to update lap times.


Member Data Documentation

const int Competitor.BoostSection = 5

The number of points in one section of the boost bar.

The controller for this competitor.

const int Competitor.MaxBoostLevel = 15

The full boost bar level.

GameObject [] Competitor.mountPrefabs

List of prefabs which match the enum GameSettings.MountChoice.

Each of these prefabs should hold a MaterialSelector if skins are to be supported.

Color Competitor.playerColor = new Color(.5f, .5f, .5f, 1)

The colour to use when displaying UI elements representing this player.

Parameters generated from the decisions made for rider and mount.

Race statistics such as lap times, air time, etc.

GameObject [] Competitor.riderPrefabs

List of prefabs which match the enum GameSettings.RiderChoice.

Each of these prefabs should hold a MaterialSelector if skins are to be supported.

Status Competitor.status = Status.Racing

The status of this competitor.


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