Finishing server side invitation system.

This commit is contained in:
lotodore
2010-03-30 17:10:37 +00:00
parent 1eadf21051
commit 5239f496f3
6 changed files with 74 additions and 6 deletions
+7
View File
@@ -78,6 +78,10 @@ public:
unsigned GetAdminPlayerId() const;
void SetAdminPlayerId(unsigned playerId);
void AddPlayerInvitation(unsigned playerId);
void RemovePlayerInvitation(unsigned playerId);
bool IsPlayerInvited(unsigned playerId) const;
// should be protected, but is needed in function.
const Game &GetGame() const;
Game &GetGame();
@@ -141,6 +145,9 @@ private:
PlayerDataList m_computerPlayerList;
mutable boost::mutex m_computerPlayerListMutex;
PlayerIdList m_playerInvitationList;
mutable boost::mutex m_playerInvitationListMutex;
unsigned m_adminPlayerId;
boost::shared_ptr<VoteKickData> m_voteKickData;