SuperTuxKart
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
GameSetup Class Reference

Used to store the needed data about the players that join a game. This class stores all the possible information about players in a lobby. More...

#include <game_setup.hpp>

Public Member Functions

void setRace (const PeerVote &vote)
 
void reset ()
 
void resetExtraServerInfo ()
 
void setGrandPrixTrack (int tracks_no)
 
void addServerInfo (NetworkString *ns)
 
void loadWorld ()
 
bool isGrandPrix () const
 
bool hasExtraSeverInfo () const
 
uint8_t getExtraServerInfo () const
 
unsigned getTotalGrandPrixTracks () const
 
void setSoccerGoalTarget (bool val)
 
bool isSoccerGoalTarget () const
 
bool isGrandPrixStarted () const
 
void stopGrandPrix ()
 
const std::vector< std::string > & getAllTracks () const
 
const std::string & getCurrentTrack () const
 
void sortPlayersForGrandPrix (std::vector< std::shared_ptr< NetworkPlayerProfile > > &players) const
 
void sortPlayersForGame (std::vector< std::shared_ptr< NetworkPlayerProfile > > &players) const
 
void setHitCaptureTime (int hc, float time)
 
const std::string & getServerNameUtf8 () const
 

Private Attributes

std::vector< std::string > m_tracks
 
unsigned m_laps
 
int m_extra_server_info
 
int m_hit_capture_limit
 
float m_battle_time_limit
 
bool m_reverse
 
std::atomic_bool m_is_grand_prix
 
irr::core::stringw m_message_of_today
 
std::string m_server_name_utf8
 Utf8 server name (with xml decoded)
 

Detailed Description

Used to store the needed data about the players that join a game. This class stores all the possible information about players in a lobby.


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