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

Detailed Description

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

Member Data Documentation

◆ m_boosted_ai

bool RaceManager::KartStatus::m_boosted_ai

Boosted status (AI only).

◆ m_color

float RaceManager::KartStatus::m_color

Kart color of player (used in gp win / lose screen).

◆ m_global_player_id

int RaceManager::KartStatus::m_global_player_id

Global ID of player.

◆ m_gp_rank

int RaceManager::KartStatus::m_gp_rank

In GPs, at the end, will hold the overall rank of this kart (0<=m_gp_rank < num_karts-1).

◆ m_handicap

HandicapLevel RaceManager::KartStatus::m_handicap

The handicap for this player.

◆ m_ident

std::string RaceManager::KartStatus::m_ident

The kart identifier.

◆ m_kart_type

KartType RaceManager::KartStatus::m_kart_type

Kart type: AI, player, network player etc.

◆ m_last_score

int RaceManager::KartStatus::m_last_score

Needed for restart race, and for race results GUI.

◆ m_last_time

float RaceManager::KartStatus::m_last_time

Needed for restart.

◆ m_overall_time

float RaceManager::KartStatus::m_overall_time

Sum of times of all races.

◆ m_player_name

std::string RaceManager::KartStatus::m_player_name

For networked karts.


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