From af5b7f45dd850bb9d6e620cbf700fcbadbcbf74b Mon Sep 17 00:00:00 2001 From: doitux Date: Tue, 25 Sep 2007 13:10:10 +0000 Subject: [PATCH] adds activePlayerList and runningPlayerList (IX) --- src/engine/local_engine/localberopreflop.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine/local_engine/localberopreflop.cpp b/src/engine/local_engine/localberopreflop.cpp index 07206c9a..abf50a81 100644 --- a/src/engine/local_engine/localberopreflop.cpp +++ b/src/engine/local_engine/localberopreflop.cpp @@ -35,7 +35,6 @@ LocalBeRoPreflop::LocalBeRoPreflop(HandInterface* hi, int id, int dP, int sB) : bigBlindPositionIt = getMyHand()->getActivePlayerList()->begin(); for(bigBlindPositionIt=getMyHand()->getActivePlayerList()->begin(); bigBlindPositionIt!=getMyHand()->getActivePlayerList()->end(); bigBlindPositionIt++) { - cout << "playerID: " << (*bigBlindPositionIt)->getMyID() << " Button: " << (*bigBlindPositionIt)->getMyButton() << endl; if((*bigBlindPositionIt)->getMyButton() == BUTTON_BIG_BLIND) break; } @@ -75,7 +74,10 @@ void LocalBeRoPreflop::run() { // falls BigBlind, dann PreflopFirstRound zuende if(getMyHand()->getPlayerArray()[getPlayersTurn()]->getMyButton() == BUTTON_BIG_BLIND && (*bigBlindPositionIt)->getMySet() < 2*getSmallBlind()) setFirstRound(0); // if next player is small blind and only all-in-big-blind with <= 2*smallblind is nonfold too - + if(getMyHand()->getPlayerArray()[getPlayersTurn()]->getMyButton() == BUTTON_SMALL_BLIND && (*bigBlindPositionIt)->getMySet() < 2*getSmallBlind() && getMyHand()->getRunningPlayerList()->size() == 1) { + setFirstRound(0); + allHighestSet = true; + } } // prfen, ob Preflop wirklich dran ist