SuperTuxKart
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
RaceManager::KartStatus Struct Reference

This data structure accumulates kart data and race result data from each race. More...

#include <race_manager.hpp>

Public Member Functions

 KartStatus (const std::string &ident, const int &prev_finish_pos, int local_player_id, int global_player_id, int init_gp_rank, KartType kt, HandicapLevel handicap)
 

Public Attributes

std::string m_ident
 The kart identifier.
 
std::string m_player_name
 For networked karts.
 
int m_score
 
int m_last_score
 Needed for restart race, and for race results GUI.
 
float m_overall_time
 Sum of times of all races.
 
float m_last_time
 Needed for restart.
 
KartType m_kart_type
 Kart type: AI, player, network player etc.
 
int m_local_player_id
 Player controling the kart, for AI: -1.
 
int m_global_player_id
 Global ID of player.
 
int m_gp_rank
 In GPs, at the end, will hold the overall rank of this kart (0<=m_gp_rank < num_karts-1).
 
bool m_boosted_ai
 Boosted status (AI only).
 
HandicapLevel m_handicap
 The handicap for this player.
 
float m_color
 Kart color of player (used in gp win / lose screen).
 

Detailed Description

This data structure accumulates kart data and race result data from each race.


The documentation for this struct was generated from the following file: