full bet rule (part 1)

This commit is contained in:
floty
2010-01-02 18:10:36 +00:00
parent 62592336b7
commit 8bafd61f3c
9 changed files with 259 additions and 76 deletions
+14 -1
View File
@@ -20,7 +20,7 @@
#include "clientbero.h"
ClientBeRo::ClientBeRo(HandInterface* hi, int /*id*/, unsigned dP, int sB, GameState gS)
: BeRoInterface(), myBeRoID(gS), myHand(hi), highestCardsValue(0), playersTurn(dP), highestSet(0), firstRound(true), smallBlindPosition(0), smallBlind(sB), minimumRaise(0)
: BeRoInterface(), myBeRoID(gS), myHand(hi), highestCardsValue(0), playersTurn(dP), highestSet(0), firstRound(true), smallBlindPosition(0), smallBlind(sB), minimumRaise(0), fullBetRule(false)
{
}
@@ -229,6 +229,19 @@ ClientBeRo::getMinimumRaise() const
return minimumRaise;
}
void
ClientBeRo::setFullBetRule ( bool theValue )
{
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
fullBetRule = theValue;
}
bool
ClientBeRo::getFullBetRule() const
{
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
return fullBetRule;
}
void
ClientBeRo::skipFirstRunGui()
+3
View File
@@ -77,6 +77,8 @@ public:
void setMinimumRaise ( int theValue );
int getMinimumRaise() const;
void setFullBetRule ( bool theValue );
bool getFullBetRule() const;
void skipFirstRunGui();
@@ -112,6 +114,7 @@ private:
int smallBlind;
int minimumRaise;
bool fullBetRule;
int lastActionPlayer;
};