implement new blinds settings (II)

This commit is contained in:
doitux
2007-09-28 05:23:13 +00:00
parent 57cb04c6a2
commit 45d71f0866
5 changed files with 237 additions and 25 deletions
+11 -1
View File
@@ -21,11 +21,13 @@
#define GAME_H
#include "game_defs.h"
#include "gamedata.h"
#include "playerdata.h"
#include "configfile.h"
#include <string>
#include <boost/shared_ptr.hpp>
#include <core/boost/timers.hpp>
class GuiInterface;
class HandInterface;
@@ -43,7 +45,7 @@ class Game {
public:
Game(GuiInterface *gui, boost::shared_ptr<EngineFactory> factory,
const PlayerDataList &playerDataList, const GameData &gameData,
const PlayerDataList &playerDataList, const GameData gameData,
const StartData &startData, int gameId);
~Game();
@@ -80,6 +82,8 @@ public:
boost::shared_ptr<PlayerInterface> getPlayerByUniqueId(unsigned id);
boost::shared_ptr<PlayerInterface> getCurrentPlayer();
void raiseBlinds();
private:
boost::shared_ptr<EngineFactory> myFactory;
@@ -106,6 +110,12 @@ private:
int actualSmallBlind;
int actualHandID;
unsigned dealerPosition;
int lastHandBlindsRaised;
int lastTimeBlindsRaised;
const GameData myGameData;
//timer
boost::timers::portable::second_timer blindsTimer;
};
#endif