limit enter-leave game done.

This commit is contained in:
Kai Philipp
2016-06-18 18:34:25 +02:00
parent cf280f0478
commit cd085bf8be
3 changed files with 55 additions and 0 deletions
+8
View File
@@ -125,6 +125,10 @@ public:
void KickPlayer(unsigned playerId);
void AddPlayerToNumJoinsPerPlayer(const std::string &playerName);
int GetNumJoinsPerPlayer(const std::string &playerName);
void ResetNumJoinsPerPlayer();
protected:
struct RankingData {
@@ -191,6 +195,8 @@ protected:
SessionManager &GetSessionManager();
ServerDBInterface &GetDatabase();
typedef std::map<std::string, int> NumJoinsPerPlayerMap;
private:
ServerGame(const ServerGame &other);
@@ -251,6 +257,8 @@ private:
friend class ServerGameStateHand;
friend class ServerGameStateWaitPlayerAction;
friend class ServerGameStateWaitNextHand;
NumJoinsPerPlayerMap m_numjoinsp;
};
#endif