Use client game id when kicking players during game.

This commit is contained in:
lotodore
2007-10-28 19:38:49 +00:00
parent ffc8bb4485
commit 3ea61381ef
7 changed files with 46 additions and 20 deletions
+7 -2
View File
@@ -65,10 +65,11 @@ public:
void SendJoinGame(unsigned gameId, const std::string &password);
void SendCreateGame(const GameData &gameData, const std::string &name, const std::string &password);
GameInfo GetGameInfo(unsigned playerId) const;
GameInfo GetGameInfo(unsigned gameId) const;
PlayerInfo GetPlayerInfo(unsigned playerId) const;
bool GetPlayerIdFromName(const std::string &playerName, unsigned &playerId) const;
ServerStats GetStatData() const;
unsigned GetGameId() const;
ClientCallback &GetCallback();
GuiInterface &GetGui();
@@ -106,6 +107,7 @@ protected:
SenderThread &GetSender();
ReceiverHelper &GetReceiver();
void SetGameId(unsigned id);
const GameData &GetGameData() const;
void SetGameData(const GameData &gameData);
const StartData &GetStartData() const;
@@ -170,9 +172,12 @@ private:
mutable boost::mutex m_playerInfoMapMutex;
PlayerIdList m_playerInfoRequestList;
unsigned m_curGameId;
mutable boost::mutex m_curGameIdMutex;
AvatarDataMap m_tempAvatarMap;
unsigned m_curGameId;
unsigned m_curGameNum;
unsigned m_guiPlayerId;
bool m_sessionEstablished;