- some changes in sqlite logging
- replace beroID-int by GameState in hand
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
using namespace std;
|
||||
|
||||
ClientHand::ClientHand(boost::shared_ptr<EngineFactory> f, GuiInterface *g, boost::shared_ptr<BoardInterface> b, Log *l, PlayerList sl, PlayerList apl, PlayerList rpl, int id, int sP, int dP, int sB,int sC)
|
||||
: myFactory(f), myGui(g), myBoard(b), myLog(l), seatsList(sl), activePlayerList(apl), runningPlayerList(rpl), myID(id), startQuantityPlayers(sP), dealerPosition(dP), currentRound(0),
|
||||
: myFactory(f), myGui(g), myBoard(b), myLog(l), seatsList(sl), activePlayerList(apl), runningPlayerList(rpl), myID(id), startQuantityPlayers(sP), dealerPosition(dP), currentRound(GAME_STATE_PREFLOP),
|
||||
smallBlind(sB), startCash(sC), lastPlayersTurn(-1), allInCondition(0),
|
||||
cardsShown(false), bettingRoundsPlayed(0)
|
||||
{
|
||||
@@ -203,13 +203,13 @@ ClientHand::getStartQuantityPlayers() const
|
||||
}
|
||||
|
||||
void
|
||||
ClientHand::setCurrentRound(int theValue)
|
||||
ClientHand::setCurrentRound(GameState theValue)
|
||||
{
|
||||
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
|
||||
currentRound = theValue;
|
||||
}
|
||||
|
||||
int
|
||||
GameState
|
||||
ClientHand::getCurrentRound() const
|
||||
{
|
||||
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
|
||||
|
||||
@@ -63,8 +63,8 @@ public:
|
||||
void setStartQuantityPlayers ( int theValue );
|
||||
int getStartQuantityPlayers() const;
|
||||
|
||||
void setCurrentRound ( int theValue );
|
||||
int getCurrentRound() const;
|
||||
void setCurrentRound ( GameState theValue );
|
||||
GameState getCurrentRound() const;
|
||||
|
||||
void setDealerPosition ( int theValue );
|
||||
int getDealerPosition() const;
|
||||
@@ -115,7 +115,7 @@ private:
|
||||
int myID;
|
||||
int startQuantityPlayers;
|
||||
unsigned dealerPosition;
|
||||
int currentRound; //0 = preflop, 1 = flop, 2 = turn, 3 = river
|
||||
GameState currentRound;
|
||||
int smallBlind;
|
||||
int startCash;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user