This commit is contained in:
doitux
2007-06-05 21:20:32 +00:00
parent fc948c176d
commit 5cfbda2532
4 changed files with 8 additions and 6 deletions
+4 -2
View File
@@ -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
+2 -2
View File
@@ -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; }
+1 -1
View File
@@ -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; }
+1 -1
View File
@@ -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;