Network timeout system also works from within a game now.

This commit is contained in:
lotodore
2008-03-06 15:27:31 +00:00
parent a3aee2b33a
commit e107cf98fa
7 changed files with 100 additions and 95 deletions
+4 -4
View File
@@ -49,7 +49,7 @@ public:
const std::string &GetName() const;
void AddSession(SessionWrapper session);
void KickPlayer(unsigned playerId);
void RemovePlayer(unsigned playerId, unsigned errorCode);
ServerCallback &GetCallback();
GameState GetCurRound() const;
@@ -80,7 +80,7 @@ protected:
// Main function of the thread.
virtual void Main();
void KickPlayerLoop();
void RemovePlayerLoop();
void InternalStartGame();
void ResetGame();
@@ -132,8 +132,8 @@ private:
PlayerDataList m_computerPlayerList;
mutable boost::mutex m_computerPlayerListMutex;
PlayerIdList m_kickPlayerList;
mutable boost::mutex m_kickPlayerListMutex;
RemovePlayerList m_removePlayerList;
mutable boost::mutex m_removePlayerListMutex;
unsigned m_adminPlayerId;
mutable boost::mutex m_adminPlayerIdMutex;