Public Member Functions | |
| PlayersList (const PlayersList &other) | |
| void | bots (PlayersList &botsList) const |
| Lists all bots regardless if they are on a team or not. More... | |
| void | botsWithoutTeam (PlayersList &botsList) const |
| Lists only those bots that are not on a team. More... | |
| void | clear () |
| int | count () const |
| void | inGamePlayersByTeams (PlayersByTeams &playersListMap) const |
| Divides players and bots to lists ordered by teams. More... | |
| int | numBots () const |
| int | numBotsOnTeam (int team) const |
| int | numBotsWithoutTeam () const |
| int | numClients () const |
| Overall number of people and bots on the server. More... | |
| int | numClientsWithoutBots () const |
| int | numHumansInGame () const |
| int | numHumansOnTeam (int team) const |
| int | numHumansWithoutTeam () const |
| int | numPlayersOnTeam (int team) const |
| int | numSpectators () const |
| PlayersList & | operator<< (const Player &player) |
| PlayersList & | operator= (const PlayersList &other) |
| Player & | operator[] (int index) |
| const Player & | operator[] (int index) const |
| const QList< Player > & | players () const |
| int | size () const |
| void | spectators (PlayersList &spectatorsList) const |
Definition at line 43 of file playerslist.h.
| void PlayersList::bots | ( | PlayersList & | botsList | ) | const |
Lists all bots regardless if they are on a team or not.
Definition at line 53 of file playerslist.cpp.
| void PlayersList::botsWithoutTeam | ( | PlayersList & | botsList | ) | const |
Lists only those bots that are not on a team.
Definition at line 66 of file playerslist.cpp.
| void PlayersList::inGamePlayersByTeams | ( | PlayersByTeams & | playersListMap | ) | const |
Divides players and bots to lists ordered by teams.
Bots that are not assigned to teams will not be listed here. To get them use botsWithoutTeam() method.
| playersListMap | [out] - New PlayersList objects will be stored in this map. |
Definition at line 233 of file playerslist.cpp.
| int PlayersList::numClients | ( | ) | const |
Overall number of people and bots on the server.
Definition at line 126 of file playerslist.cpp.