full bet rule (part 1)
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user