adds activePlayerList and runningPlayerList (XVI)

This commit is contained in:
doitux
2007-09-26 22:27:05 +00:00
parent f41245f310
commit 4f7d7ee277
6 changed files with 158 additions and 158 deletions
+8 -1
View File
@@ -174,6 +174,7 @@ void LocalBeRoPreflop::run() {
for(it_c=getMyHand()->getRunningPlayerList()->begin(); it_c!=getMyHand()->getRunningPlayerList()->end(); it_c++) {
if(getHighestSet() != (*it_c)->getMySet()) {
allHighestSet = false;
break;
}
}
@@ -183,7 +184,13 @@ void LocalBeRoPreflop::run() {
// it++;
PlayerListIterator currentPlayersTurnIt = getMyHand()->getRunningPlayerIt( getCurrentPlayersTurnId() );
cout << "size: " << getMyHand()->getRunningPlayerList()->size() << endl;
cout << "currentPlayerID: " << getCurrentPlayersTurnId() << endl;
PlayerListConstIterator currentPlayersTurnIt = getMyHand()->getRunningPlayerIt( getCurrentPlayersTurnId() );
assert( currentPlayersTurnIt != getMyHand()->getRunningPlayerList()->end() );
currentPlayersTurnIt++;