Statistics updated for each character and used to sort and find the racer's position in the race. More...
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. |
Statistics updated for each character and used to sort and find the racer's position in the race.
RaceStatistics.RaceStatistics | ( | Competitor | competitor, | |
int | laps | |||
) |
Constructor.
void RaceStatistics.CalculateScores | ( | ) |
Work out the final scores.
int RaceStatistics.CompareTo | ( | System.Object | o | ) |
Compare to other races to gain position.
float RaceStatistics.bestLapTime = UnsetTime |
Best lap time.
float RaceStatistics.boostLevel = 5 |
The current boost bar level.
The competitor for which these statistics apply.
int RaceStatistics.lapCount = 0 |
How many laps are complete.
float RaceStatistics.lapPosition = 0 |
Position through current lap in [0 - 1).
float [] RaceStatistics.lapTimes |
Times for all laps including current lap.
string RaceStatistics.playerName = "Unnamed Racer" |
The name of the competitor.
int RaceStatistics.racePosition = 1 |
The current position (updated by MainGame).
float RaceStatistics.recoveryLevel = 0 |
(Unusued?)
float RaceStatistics.totalTime = UnsetTime |
Total time spent racing.
const float RaceStatistics.UnsetTime = 0 |
Value used to indicate an unset time.