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; }