RaceStatistics Class Reference

Statistics updated for each character and used to sort and find the racer's position in the race. More...

List of all members.

Public Member Functions

 RaceStatistics (Competitor competitor, int laps)
 Constructor.
void CalculateScores ()
 Work out the final scores.
int CompareTo (System.Object o)
 Compare to other races to gain position.

Public Attributes

const float UnsetTime = 0
 Value used to indicate an unset time.
Competitor competitor
 The competitor for which these statistics apply.
string playerName = "Unnamed Racer"
 The name of the competitor.
int racePosition = 1
 The current position (updated by MainGame).
float boostLevel = 5
 The current boost bar level.
float recoveryLevel = 0
 (Unusued?)
int lapCount = 0
 How many laps are complete.
float lapPosition = 0
 Position through current lap in [0 - 1).
float[] lapTimes
 Times for all laps including current lap.
float airTime = 0
float totalTime = UnsetTime
 Total time spent racing.
float bestLapTime = UnsetTime
 Best lap time.

Detailed Description

Statistics updated for each character and used to sort and find the racer's position in the race.


Constructor & Destructor Documentation

RaceStatistics.RaceStatistics ( Competitor  competitor,
int  laps 
)

Constructor.


Member Function Documentation

void RaceStatistics.CalculateScores (  ) 

Work out the final scores.

int RaceStatistics.CompareTo ( System.Object  o  ) 

Compare to other races to gain position.


Member Data Documentation

Best lap time.

The current boost bar level.

The competitor for which these statistics apply.

How many laps are complete.

Position through current lap in [0 - 1).

Times for all laps including current lap.

string RaceStatistics.playerName = "Unnamed Racer"

The name of the competitor.

The current position (updated by MainGame).

(Unusued?)

Total time spent racing.

const float RaceStatistics.UnsetTime = 0

Value used to indicate an unset time.


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