delete unused function "getMyWinnerState"; activate Engine-Action-Log in localHand; run astyle
This commit is contained in:
@@ -1824,7 +1824,6 @@ void gameTableImpl::myFold()
|
||||
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
|
||||
boost::shared_ptr<PlayerInterface> humanPlayer = currentHand->getSeatsList()->front();
|
||||
humanPlayer->setMyAction(PLAYER_ACTION_FOLD);
|
||||
// currentHand->getLog()->logPlayerAction(currentHand->getCurrentRound()+1,1,LOG_ACTION_FOLD);
|
||||
humanPlayer->setMyTurn(0);
|
||||
|
||||
//set that i was the last active player. need this for unhighlighting groupbox
|
||||
@@ -1843,7 +1842,6 @@ void gameTableImpl::myCheck()
|
||||
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
|
||||
boost::shared_ptr<PlayerInterface> humanPlayer = currentHand->getSeatsList()->front();
|
||||
humanPlayer->setMyTurn(0);
|
||||
// currentHand->getLog()->logPlayerAction(currentHand->getCurrentRound()+1,1,LOG_ACTION_CHECK);
|
||||
humanPlayer->setMyAction(PLAYER_ACTION_CHECK);
|
||||
|
||||
//set that i was the last active player. need this for unhighlighting groupbox
|
||||
@@ -1910,11 +1908,9 @@ void gameTableImpl::myCall()
|
||||
|
||||
humanPlayer->setMySet(humanPlayer->getMyCash());
|
||||
humanPlayer->setMyCash(0);
|
||||
// currentHand->getLog()->logPlayerAction(currentHand->getCurrentRound()+1,1,LOG_ACTION_ALL_IN,humanPlayer->getMySet());
|
||||
humanPlayer->setMyAction(PLAYER_ACTION_ALLIN);
|
||||
} else {
|
||||
humanPlayer->setMySet(tempHighestSet - humanPlayer->getMySet());
|
||||
// currentHand->getLog()->logPlayerAction(currentHand->getCurrentRound()+1,1,LOG_ACTION_CALL,humanPlayer->getMySet());
|
||||
humanPlayer->setMyAction(PLAYER_ACTION_CALL);
|
||||
}
|
||||
humanPlayer->setMyTurn(0);
|
||||
@@ -1949,7 +1945,6 @@ void gameTableImpl::mySet()
|
||||
humanPlayer->setMySet(humanPlayer->getMyCash());
|
||||
humanPlayer->setMyCash(0);
|
||||
humanPlayer->setMyAction(PLAYER_ACTION_ALLIN);
|
||||
// currentHand->getLog()->logPlayerAction(currentHand->getCurrentRound()+1,1,LOG_ACTION_ALL_IN,humanPlayer->getMySet());
|
||||
|
||||
// full bet rule
|
||||
if(currentHand->getCurrentBeRo()->getHighestSet() + currentHand->getCurrentBeRo()->getMinimumRaise() > humanPlayer->getMySet()) {
|
||||
@@ -1961,7 +1956,6 @@ void gameTableImpl::mySet()
|
||||
//do not if allIn
|
||||
if(humanPlayer->getMyAction() != 6) {
|
||||
humanPlayer->setMyAction(PLAYER_ACTION_RAISE);
|
||||
// currentHand->getLog()->logPlayerAction(currentHand->getCurrentRound()+1,1,LOG_ACTION_BET,humanPlayer->getMySet());
|
||||
}
|
||||
myActionIsRaise = 0;
|
||||
|
||||
@@ -1972,7 +1966,6 @@ void gameTableImpl::mySet()
|
||||
//do not if allIn
|
||||
if(humanPlayer->getMyAction() != 6) {
|
||||
humanPlayer->setMyAction(PLAYER_ACTION_BET);
|
||||
// currentHand->getLog()->logPlayerAction(currentHand->getCurrentRound()+1,1,LOG_ACTION_BET,humanPlayer->getMySet());
|
||||
}
|
||||
myActionIsBet = 0;
|
||||
|
||||
@@ -2010,7 +2003,6 @@ void gameTableImpl::myAllIn()
|
||||
humanPlayer->setMySet(humanPlayer->getMyCash());
|
||||
humanPlayer->setMyCash(0);
|
||||
humanPlayer->setMyAction(PLAYER_ACTION_ALLIN);
|
||||
// currentHand->getLog()->logPlayerAction(currentHand->getCurrentRound()+1,1,LOG_ACTION_ALL_IN,humanPlayer->getMySet());
|
||||
|
||||
// full bet rule
|
||||
if(currentHand->getCurrentBeRo()->getHighestSet() + currentHand->getCurrentBeRo()->getMinimumRaise() > humanPlayer->getMySet()) {
|
||||
|
||||
Reference in New Issue
Block a user