- rename lastPlayersTurn -> previousPlayerID and lastActionPlayer -> lastActionPlayerID
This commit is contained in:
@@ -84,7 +84,7 @@ void LocalBeRo::run()
|
||||
|
||||
if(firstRunGui) {
|
||||
firstRunGui = false;
|
||||
myHand->setLastPlayersTurn(-1);
|
||||
myHand->setPreviousPlayerID(-1);
|
||||
myHand->getGuiInterface()->dealBeRoCards(myBeRoID);
|
||||
} else {
|
||||
|
||||
@@ -243,32 +243,6 @@ void LocalBeRo::run()
|
||||
myHand->getGuiInterface()->beRoAnimation2(myBeRoID);
|
||||
}
|
||||
|
||||
// logging action
|
||||
PlayerActionLog myActionLog = LOG_ACTION_NONE;
|
||||
switch((*currentPlayersTurnIt)->getMyAction()) {
|
||||
case PLAYER_ACTION_FOLD: {
|
||||
myActionLog = LOG_ACTION_FOLD;
|
||||
} break;
|
||||
case PLAYER_ACTION_CHECK: {
|
||||
myActionLog = LOG_ACTION_CHECK;
|
||||
} break;
|
||||
case PLAYER_ACTION_CALL: {
|
||||
myActionLog = LOG_ACTION_CALL;
|
||||
} break;
|
||||
case PLAYER_ACTION_BET:
|
||||
case PLAYER_ACTION_RAISE: {
|
||||
myActionLog = LOG_ACTION_BET;
|
||||
} break;
|
||||
case PLAYER_ACTION_ALLIN: {
|
||||
myActionLog = LOG_ACTION_ALL_IN;
|
||||
} break;
|
||||
default: {
|
||||
}
|
||||
}
|
||||
if(myActionLog) {
|
||||
// myHand->getLog()->logPlayerAction(myBeRoID+1,(*currentPlayersTurnIt)->getMyID()+1,myActionLog);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user