create additional class for server time delay; remove define NEW_LOCAL_GAME

This commit is contained in:
floty
2014-07-27 18:09:19 +02:00
parent 304eac07a3
commit 015d6b7c72
11 changed files with 152 additions and 117 deletions
+33
View File
@@ -0,0 +1,33 @@
#ifndef SERVERDELAYTIME_H
#define SERVERDELAYTIME_H
#include <game_defs.h>
class ServerDelayTime
{
public:
ServerDelayTime(const ServerMode mode);
int getNextGameDelay() const;
int getDealFlopCardsDelay() const;
int getDealTurnCardsDelay() const;
int getDealRiverCardsDelay() const;
int getDealAddAllInDelay() const;
int getShowCardsDelay() const;
int getComputerActionDelay() const;
int getPlayerTimeoutAddDelay() const;
private:
int nextGameDelay;
int dealFlopCardsDelay;
int dealTurnCardsDelay;
int dealRiverCardsDelay;
int dealAddAllInDelay;
int showCardsDelay;
int computerActionDelay;
int playerTimeoutAddDelay;
};
#endif // SERVERDELAYTIME_H