applying astyle
This commit is contained in:
@@ -528,29 +528,29 @@ void LocalHand::setBlinds()
|
||||
void LocalHand::switchRounds()
|
||||
{
|
||||
|
||||
// logging last player action
|
||||
// currentPlayersTurnIt = myHand->getRunningPlayerIt( currentPlayersTurnId );
|
||||
// if(currentPlayersTurnIt == myHand->getRunningPlayerList()->end()) {
|
||||
// // logging last player action
|
||||
// PlayerListConstIterator previousPlayerIt = getRunningPlayerIt(previousPlayerID);
|
||||
// if(previousPlayerIt == runningPlayerList->end()) {
|
||||
// throw LocalException(__FILE__, __LINE__, ERR_RUNNING_PLAYER_NOT_FOUND);
|
||||
// }
|
||||
|
||||
|
||||
// switch((*currentPlayersTurnIt)->getMyAction()) {
|
||||
// switch((*previousPlayerIt)->getMyAction()) {
|
||||
// case PLAYER_ACTION_FOLD: {
|
||||
// myHand->getLog()->logPlayerAction(myBeRoID+1,(*currentPlayersTurnIt)->getMyID()+1,LOG_ACTION_FOLD);
|
||||
// myLog->logPlayerAction(currentRound+1,(*previousPlayerIt)->getMyID()+1,LOG_ACTION_FOLD);
|
||||
// } break;
|
||||
// case PLAYER_ACTION_CHECK: {
|
||||
// myHand->getLog()->logPlayerAction(myBeRoID+1,(*currentPlayersTurnIt)->getMyID()+1,LOG_ACTION_CHECK);
|
||||
// myLog->logPlayerAction(currentRound+1,(*previousPlayerIt)->getMyID()+1,LOG_ACTION_CHECK);
|
||||
// } break;
|
||||
// case PLAYER_ACTION_CALL: {
|
||||
// myHand->getLog()->logPlayerAction(myBeRoID+1,(*currentPlayersTurnIt)->getMyID()+1,LOG_ACTION_CALL);
|
||||
// myLog->logPlayerAction(currentRound+1,(*previousPlayerIt)->getMyID()+1,LOG_ACTION_CALL);
|
||||
// } break;
|
||||
// case PLAYER_ACTION_BET:
|
||||
// case PLAYER_ACTION_RAISE: {
|
||||
// myHand->getLog()->logPlayerAction(myBeRoID+1,(*currentPlayersTurnIt)->getMyID()+1,LOG_ACTION_BET,(*currentPlayersTurnIt)->getMySet());
|
||||
// myLog->logPlayerAction(currentRound+1,(*previousPlayerIt)->getMyID()+1,LOG_ACTION_BET,(*previousPlayerIt)->getMySet());
|
||||
// } break;
|
||||
// case PLAYER_ACTION_ALLIN: {
|
||||
// myHand->getLog()->logPlayerAction(myBeRoID+1,(*currentPlayersTurnIt)->getMyID()+1,LOG_ACTION_ALL_IN,(*currentPlayersTurnIt)->getMySet());
|
||||
// myLog->logPlayerAction(currentRound+1,(*previousPlayerIt)->getMyID()+1,LOG_ACTION_ALL_IN,(*previousPlayerIt)->getMySet());
|
||||
// } break;
|
||||
// default: {
|
||||
// }
|
||||
|
||||
+1
-2
@@ -240,8 +240,7 @@ void Log::logNewHandMsg(int handID, unsigned dealerPosition, int smallBlind, uns
|
||||
}
|
||||
if(countActivePlayer==2) {
|
||||
logPlayerAction(0,smallBlindPosition,LOG_ACTION_DEALER);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
if(dealerButtonOnTable) {
|
||||
logPlayerAction(0,dealerPosition,LOG_ACTION_DEALER);
|
||||
}
|
||||
|
||||
@@ -248,13 +248,11 @@ void ChatTools::nickAutoCompletition()
|
||||
|
||||
if(lastChatString == "") {
|
||||
myLineEdit->setText(lastMatchStringList.at(nickAutoCompletitionCounter)+": ");
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
//check if lastChatString is pm-code
|
||||
if((lastChatString == "/msg" || lastChatString == "/msg ") && lastMatchStringList.at(nickAutoCompletitionCounter).contains(" ")) {
|
||||
myLineEdit->setText(lastChatString+" \""+lastMatchStringList.at(nickAutoCompletitionCounter)+"\" ");
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
myLineEdit->setText(lastChatString+" "+lastMatchStringList.at(nickAutoCompletitionCounter)+" ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2653,8 +2653,7 @@ void gameTableImpl::showHoleCards(unsigned playerId, bool allIn)
|
||||
//set Player value (logging)
|
||||
if(currentHand->getCurrentRound() < GAME_STATE_RIVER || allIn) {
|
||||
(*it_c)->setMyCardsFlip(1,2); //for bero before postriver or allin just log the hole cards
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
(*it_c)->setMyCardsFlip(1,1); //for postriver log the value
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user