Anti flood for game commands

This commit is contained in:
Fabio Bas 2015-03-14 19:44:32 +01:00
parent 20603c7e9b
commit 0e437cf13b
6 changed files with 41 additions and 7 deletions

View file

@ -60,8 +60,11 @@ public:
virtual int getMaxMessageCountPerInterval() const { return 0; }
virtual int getMaxMessageSizePerInterval() const { return 0; }
virtual int getMaxGamesPerUser() const { return 0; }
virtual int getCommandCountingInterval() const { return 0; }
virtual int getMaxCommandCountPerInterval() const { return 0; }
virtual bool getThreaded() const { return false; }
Server_DatabaseInterface *getDatabaseInterface() const;
int getNextLocalGameId() { QMutexLocker locker(&nextLocalGameIdMutex); return ++nextLocalGameId; }