This commit is contained in:
Max-Wilhelm Bruker 2010-05-26 17:33:44 +02:00
parent cb045907cb
commit 628f58cd56
2 changed files with 15 additions and 7 deletions

View file

@ -54,7 +54,7 @@ public:
bool getGameStarted() const { return gameStarted; }
int getPlayerCount() const;
int getSpectatorCount() const;
QList<Server_Player *> getPlayers() const { return players.values(); }
const QMap<int, Server_Player *> &getPlayers() const { return players; }
Server_Player *getPlayer(int playerId) const { return players.value(playerId, 0); }
int getGameId() const { return gameId; }
QString getDescription() const { return description; }