don't send useless information in getGameState; fixed bug that caused an attached card to have undefined coordinates when its parent card was destroyed by conceding or leaving

This commit is contained in:
Max-Wilhelm Bruker 2012-01-30 00:21:47 +01:00
parent eb06d6b4ea
commit 5692addf54
4 changed files with 45 additions and 14 deletions

View file

@ -86,7 +86,8 @@ public:
bool containsUser(const QString &userName) const;
Server_Player *addPlayer(Server_ProtocolHandler *handler, bool spectator, bool broadcastUpdate = true);
void removePlayer(Server_Player *player);
void removeArrowsToPlayer(Server_Player *player);
void removeArrowsToPlayer(GameEventStorage &ges, Server_Player *player);
void unattachCards(GameEventStorage &ges, Server_Player *player);
bool kickPlayer(int playerId);
void startGameIfReady();
void stopGameIfFinished();