Mania++
 All Classes Functions Variables Pages
Public Member Functions | Public Attributes | Private Member Functions | List of all members
Player Struct Reference

Contains all information about a player in easy-to-use format. More...

#include <Player.h>

Public Member Functions

 Player ()
 Constructs a Player object without input.
 
 Player (std::map< std::string, GbxResponseParameter > serverStruct)
 Formats a server response into a usable form. More...
 
void PlayerDetailed (std::map< std::string, GbxResponseParameter > serverStruct)
 Formats a server response into a usable form. More...
 
void SetId (int id)
 Set database identifier value. More...
 

Public Attributes

int Id = 0
 Player identifier (on database).
 
std::vector< int > CurrentCheckpoints
 Checkpoint passes on current try.
 
int PlayerId
 Player identifier (on server).
 
int TeamId
 Team identifier (on server).
 
std::string Login
 Player login.
 
std::string NickName
 Player nickname.
 
int SpectatorStatus
 Spectator status of player.
 
int Flags
 Player flags.
 
int LadderRanking
 Current ladder ranking of the player.
 
std::string IPAddress
 IP Address of the player.
 
int DownloadRate
 Download rate in Kbps.
 
int UploadRate
 Upload rate in Kbps.
 
std::string Language
 Application language.
 
bool IsSpectator
 Is in spectatormode?
 
bool IsInOfficialMode
 Is in official mode?
 
std::string ClientVersion
 Client version (f.e. 'v2015-06-18_15_10 (3.3.0)').
 
std::string ClubLink
 Club URL (website, entered by player).
 
std::string Path
 Player location without "world".
 
std::string Country
 Path without continent.
 

Private Member Functions

void setBasicInfo (std::map< std::string, GbxResponseParameter > serverStruct)
 Sets the basic player information from the struct. More...
 
void setDetailedInfo (std::map< std::string, GbxResponseParameter > serverStruct)
 Sets the detailed player information from the struct. More...
 

Detailed Description

Contains all information about a player in easy-to-use format.

Constructor & Destructor Documentation

Player::Player ( std::map< std::string, GbxResponseParameter serverStruct)
inline

Formats a server response into a usable form.

Parameters
serverStructThe struct with player information received from the server.

Member Function Documentation

void Player::PlayerDetailed ( std::map< std::string, GbxResponseParameter serverStruct)
inline

Formats a server response into a usable form.

Parameters
serverStructThe struct with detailed player information received from the server.
void Player::setBasicInfo ( std::map< std::string, GbxResponseParameter serverStruct)
inlineprivate

Sets the basic player information from the struct.

Parameters
serverStructThe struct with player information received from the server.
void Player::setDetailedInfo ( std::map< std::string, GbxResponseParameter serverStruct)
inlineprivate

Sets the detailed player information from the struct.

Parameters
serverStructThe struct with detailed player information received from the server.
void Player::SetId ( int  id)
inline

Set database identifier value.

Parameters
idDatabase ID.

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