PlayersList Class Reference

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
 
PlayersListoperator<< (const Player &player)
 
PlayersListoperator= (const PlayersList &other)
 
Playeroperator[] (int index)
 
const Playeroperator[] (int index) const
 
const QList< Player > & players () const
 
int size () const
 
void spectators (PlayersList &spectatorsList) const
 

Detailed Description

Definition at line 43 of file playerslist.h.

Member Function Documentation

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.

Parameters
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.


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