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... | |
Contains all information about a player in easy-to-use format.
|
inline |
Formats a server response into a usable form.
| serverStruct | The struct with player information received from the server. |
|
inline |
Formats a server response into a usable form.
| serverStruct | The struct with detailed player information received from the server. |
|
inlineprivate |
Sets the basic player information from the struct.
| serverStruct | The struct with player information received from the server. |
|
inlineprivate |
Sets the detailed player information from the struct.
| serverStruct | The struct with detailed player information received from the server. |
|
inline |
Set database identifier value.
| id | Database ID. |
1.8.6