limit enter-leave game done.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user