human player handling for engine

This commit is contained in:
floty
2007-11-12 22:11:16 +00:00
parent 19343ef8f8
commit 639bb21cc4
3 changed files with 164 additions and 44 deletions
+13 -5
View File
@@ -57,14 +57,22 @@ void LocalBeRoPostRiver::postRiverRun() {
}
}
// prüfen ob nur noch der human player an der verteilung teilnimmt und myAggressive für human player setzen
it = getMyHand()->getActivePlayerIt(0);
if( it != getMyHand()->getActivePlayerList()->end() ) {
if( potPlayers == 1 && (*it)->getMyAction() != PLAYER_ACTION_FOLD ) {
(*it)->setMyAggressive(true);
// prüfen ob nur noch human player an der verteilung teilnimmt und myAggressive für human player setzen
if(potPlayers == 1) {
for(it=getMyHand()->getActivePlayerList()->begin(); it!=getMyHand()->getActivePlayerList()->end(); it++) {
if( (*it)->getMyAction() != PLAYER_ACTION_FOLD) {
(*it)->setMyAggressive(true);
}
}
}
// it = getMyHand()->getActivePlayerIt(0);
// if( it != getMyHand()->getActivePlayerList()->end() ) {
// if( potPlayers == 1 && (*it)->getMyAction() != PLAYER_ACTION_FOLD ) {
// (*it)->setMyAggressive(true);
// }
// }
// Pot-Verteilung
getMyHand()->getBoard()->distributePot();