log fix
This commit is contained in:
@@ -246,7 +246,8 @@ void LocalHand::assignButtons() {
|
||||
if(playerArray[i]->getMyCash() <= smallBlind) {
|
||||
|
||||
playerArray[i]->setMySet(playerArray[i]->getMyCash());
|
||||
playerArray[i]->setMyAction(6);
|
||||
// 1 to do not log this
|
||||
playerArray[i]->setMyAction(6,1);
|
||||
|
||||
}
|
||||
// sonst
|
||||
@@ -259,7 +260,8 @@ void LocalHand::assignButtons() {
|
||||
if(playerArray[i]->getMyCash() <= 2*smallBlind) {
|
||||
|
||||
playerArray[i]->setMySet(playerArray[i]->getMyCash());
|
||||
playerArray[i]->setMyAction(6);
|
||||
// 1 to do not log this
|
||||
playerArray[i]->setMyAction(6,1);
|
||||
|
||||
}
|
||||
// sonst
|
||||
|
||||
@@ -64,10 +64,10 @@ public:
|
||||
int getMySet() const { return mySet;}
|
||||
int getMyLastRelativeSet() const { return myLastRelativeSet; }
|
||||
|
||||
void setMyAction(int theValue) {
|
||||
void setMyAction(int theValue, bool blind = 0) {
|
||||
myAction = theValue;
|
||||
// logging for human player
|
||||
if(myAction) actualHand->getGuiInterface()->logPlayerActionMsg(myName, myAction, mySet);
|
||||
if(myAction && !blind) actualHand->getGuiInterface()->logPlayerActionMsg(myName, myAction, mySet);
|
||||
}
|
||||
int getMyAction() const { return myAction; }
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ public:
|
||||
int getMySet() const { return mySet;}
|
||||
int getMyLastRelativeSet() const { return myLastRelativeSet; }
|
||||
|
||||
void setMyAction(int theValue) { myAction = theValue; }
|
||||
void setMyAction(int theValue, bool blind) { myAction = theValue; }
|
||||
int getMyAction() const { return myAction; }
|
||||
|
||||
void setMyButton(int theValue) { myButton = theValue; }
|
||||
|
||||
@@ -59,7 +59,7 @@ public:
|
||||
virtual int getMySet() const =0;
|
||||
virtual int getMyLastRelativeSet() const =0;
|
||||
|
||||
virtual void setMyAction(int theValue) =0;
|
||||
virtual void setMyAction(int theValue, bool blind=0) =0;
|
||||
virtual int getMyAction() const =0;
|
||||
|
||||
virtual void setMyButton(int theValue) =0;
|
||||
|
||||
Reference in New Issue
Block a user