SuperTuxKart
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
LinearWorld::KartInfo Class Reference

Some additional info that needs to be kept for each kart in this kind of race. More...

Public Member Functions

 KartInfo ()
 Initialises all fields.
 
void reset ()
 Re-initialises all data.
 
void saveCompleteState (BareNetworkString *bns)
 
void restoreCompleteState (const BareNetworkString &b)
 

Public Attributes

int m_finished_laps
 Number of finished laps.
 
int m_ticks_at_last_lap
 Time at finishing last lap.
 
int m_lap_start_ticks
 Time at start of a new lap.
 
float m_estimated_finish
 During last lap only: estimated finishing time!

 
float m_overall_distance
 How far the kart has travelled (this is (number-of-laps-1) times track-length plus distance-along-track).
 
float m_wrong_way_timer
 Accumulates the time a kart has been driving in the wrong direction so that a message can be displayed.
 

Detailed Description

Some additional info that needs to be kept for each kart in this kind of race.


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