Finishing server side invitation system.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user