delete unused function "getMyWinnerState"; activate Engine-Action-Log in localHand; run astyle
This commit is contained in:
@@ -528,34 +528,35 @@ void LocalHand::setBlinds()
|
||||
void LocalHand::switchRounds()
|
||||
{
|
||||
|
||||
// // logging last player action
|
||||
// PlayerListConstIterator previousPlayerIt = getRunningPlayerIt(previousPlayerID);
|
||||
// if(previousPlayerIt == runningPlayerList->end()) {
|
||||
// throw LocalException(__FILE__, __LINE__, ERR_RUNNING_PLAYER_NOT_FOUND);
|
||||
// }
|
||||
|
||||
|
||||
// switch((*previousPlayerIt)->getMyAction()) {
|
||||
// case PLAYER_ACTION_FOLD: {
|
||||
// myLog->logPlayerAction(currentRound+1,(*previousPlayerIt)->getMyID()+1,LOG_ACTION_FOLD);
|
||||
// } break;
|
||||
// case PLAYER_ACTION_CHECK: {
|
||||
// myLog->logPlayerAction(currentRound+1,(*previousPlayerIt)->getMyID()+1,LOG_ACTION_CHECK);
|
||||
// } break;
|
||||
// case PLAYER_ACTION_CALL: {
|
||||
// myLog->logPlayerAction(currentRound+1,(*previousPlayerIt)->getMyID()+1,LOG_ACTION_CALL);
|
||||
// } break;
|
||||
// case PLAYER_ACTION_BET:
|
||||
// case PLAYER_ACTION_RAISE: {
|
||||
// myLog->logPlayerAction(currentRound+1,(*previousPlayerIt)->getMyID()+1,LOG_ACTION_BET,(*previousPlayerIt)->getMySet());
|
||||
// } break;
|
||||
// case PLAYER_ACTION_ALLIN: {
|
||||
// myLog->logPlayerAction(currentRound+1,(*previousPlayerIt)->getMyID()+1,LOG_ACTION_ALL_IN,(*previousPlayerIt)->getMySet());
|
||||
// } break;
|
||||
// default: {
|
||||
// }
|
||||
// }
|
||||
|
||||
// logging last player action
|
||||
PlayerListConstIterator previousPlayerIt = getRunningPlayerIt(previousPlayerID);
|
||||
if(previousPlayerIt != runningPlayerList->end()) {
|
||||
switch((*previousPlayerIt)->getMyAction()) {
|
||||
case PLAYER_ACTION_FOLD: {
|
||||
myLog->logPlayerAction(currentRound+1,(*previousPlayerIt)->getMyID()+1,LOG_ACTION_FOLD);
|
||||
}
|
||||
break;
|
||||
case PLAYER_ACTION_CHECK: {
|
||||
myLog->logPlayerAction(currentRound+1,(*previousPlayerIt)->getMyID()+1,LOG_ACTION_CHECK);
|
||||
}
|
||||
break;
|
||||
case PLAYER_ACTION_CALL: {
|
||||
myLog->logPlayerAction(currentRound+1,(*previousPlayerIt)->getMyID()+1,LOG_ACTION_CALL,(*previousPlayerIt)->getMySet());
|
||||
}
|
||||
break;
|
||||
case PLAYER_ACTION_BET:
|
||||
case PLAYER_ACTION_RAISE: {
|
||||
myLog->logPlayerAction(currentRound+1,(*previousPlayerIt)->getMyID()+1,LOG_ACTION_BET,(*previousPlayerIt)->getMySet());
|
||||
}
|
||||
break;
|
||||
case PLAYER_ACTION_ALLIN: {
|
||||
myLog->logPlayerAction(currentRound+1,(*previousPlayerIt)->getMyID()+1,LOG_ACTION_ALL_IN,(*previousPlayerIt)->getMySet());
|
||||
}
|
||||
break;
|
||||
default: {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
PlayerListIterator it, it_1;
|
||||
PlayerListConstIterator it_c;
|
||||
|
||||
@@ -255,11 +255,6 @@ public:
|
||||
if(theValue) myWinnerState = theValue;
|
||||
currentHand->getGuiInterface()->logPlayerWinsMsg(myName, pot, theValue);
|
||||
}
|
||||
bool getMyWinnerState() const {
|
||||
return myWinnerState;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void action();
|
||||
|
||||
|
||||
@@ -442,13 +442,6 @@ ClientPlayer::setMyWinnerState(bool theValue, int pot)
|
||||
currentHand->getGuiInterface()->logPlayerWinsMsg(myName, pot, theValue);
|
||||
}
|
||||
|
||||
bool
|
||||
ClientPlayer::getMyWinnerState() const
|
||||
{
|
||||
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
|
||||
return myWinnerState;
|
||||
}
|
||||
|
||||
void
|
||||
ClientPlayer::action()
|
||||
{
|
||||
|
||||
@@ -110,7 +110,6 @@ public:
|
||||
bool getSBluffStatus() const;
|
||||
|
||||
void setMyWinnerState (bool theValue, int pot);
|
||||
bool getMyWinnerState() const;
|
||||
|
||||
void action();
|
||||
int checkMyAction(int targetAction, int targetBet, int highestSet, int minimumRaise, int smallBlind);
|
||||
|
||||
@@ -108,7 +108,6 @@ public:
|
||||
virtual bool getSBluffStatus() const =0;
|
||||
|
||||
virtual void setMyWinnerState ( bool theValue, int pot ) =0;
|
||||
virtual bool getMyWinnerState() const =0;
|
||||
|
||||
virtual void action() =0;
|
||||
virtual int checkMyAction(int targetAction, int targetBet, int highestSet, int minimumRaise, int smallBlind) = 0;
|
||||
|
||||
Reference in New Issue
Block a user