SuperTuxKart
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. More...
 
void reset ()
 Re-initialises all data. More...
 
void saveCompleteState (BareNetworkString *bns)
 
void restoreCompleteState (const BareNetworkString &b)
 

Public Attributes

int m_finished_laps
 Number of finished laps. More...
 
int m_ticks_at_last_lap
 Time at finishing last lap. More...
 
int m_lap_start_ticks
 Time at start of a new lap. More...
 
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). More...
 
float m_wrong_way_timer
 Accumulates the time a kart has been driving in the wrong direction so that a message can be displayed. More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ KartInfo()

LinearWorld::KartInfo::KartInfo ( )
inline

Initialises all fields.

Member Function Documentation

◆ reset()

void LinearWorld::KartInfo::reset ( )
inline

Re-initialises all data.

Member Data Documentation

◆ m_finished_laps

int LinearWorld::KartInfo::m_finished_laps

Number of finished laps.

◆ m_lap_start_ticks

int LinearWorld::KartInfo::m_lap_start_ticks

Time at start of a new lap.

◆ m_overall_distance

float LinearWorld::KartInfo::m_overall_distance

How far the kart has travelled (this is (number-of-laps-1) times track-length plus distance-along-track).

◆ m_ticks_at_last_lap

int LinearWorld::KartInfo::m_ticks_at_last_lap

Time at finishing last lap.

◆ m_wrong_way_timer

float LinearWorld::KartInfo::m_wrong_way_timer

Accumulates the time a kart has been driving in the wrong direction so that a message can be displayed.


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