Data structure that holds information about players in a server. More...
#include <player.h>
Public Types | |
| enum | PlayerTeam { TEAM_BLUE, TEAM_RED, TEAM_GREEN, TEAM_GOLD, TEAM_NONE = 0xFF } |
Public Member Functions | |
| Player (const QString &name, long score, unsigned long ping, PlayerTeam team=TEAM_NONE, bool spectator=false, bool bot=false) | |
| Player (const Player &other) | |
| bool | isBot () const |
| bool | isSpectating () const |
| bool | isTeamlessBot () const |
| const QString & | name () const |
| QString | nameColorTagsStripped () const |
| QString | nameFormatted () const |
| Player & | operator= (const Player &other) |
| bool | operator== (const Player &other) const |
| unsigned long | ping () const |
| long | score () const |
| PlayerTeam | teamNum () const |
Data structure that holds information about players in a server.
| QString Player::nameColorTagsStripped | ( | ) | const |
Seeks for characters that are not from the <32; 126> range, removes them and the characters that appear after them, then returns new string.
Definition at line 94 of file player.cpp.
| QString Player::nameFormatted | ( | ) | const |
Formats string into HTML format.
Definition at line 131 of file player.cpp.