adds activePlayerList and runningPlayerList (XIII) - BUGGY!!! - last sable rev866
This commit is contained in:
@@ -24,8 +24,10 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
LocalBeRoPreflop::LocalBeRoPreflop(HandInterface* hi, int id, int dP, int sB) : LocalBeRo(hi, id, dP, sB, GAME_STATE_PREFLOP)
|
||||
LocalBeRoPreflop::LocalBeRoPreflop(HandInterface* hi, int id, int dP, int sB) : LocalBeRo(hi, id, dP, sB, GAME_STATE_PREFLOP), bigBlindPosition(0)
|
||||
{
|
||||
PlayerListConstIterator it_c;
|
||||
|
||||
setHighestSet(2*getSmallBlind());
|
||||
|
||||
// determine bigBlindPosition
|
||||
@@ -33,6 +35,13 @@ LocalBeRoPreflop::LocalBeRoPreflop(HandInterface* hi, int id, int dP, int sB) :
|
||||
if((*bigBlindPositionIt)->getMyButton() == BUTTON_BIG_BLIND) break;
|
||||
}
|
||||
|
||||
for(it_c=getMyHand()->getActivePlayerList()->begin(); it_c!=getMyHand()->getActivePlayerList()->end(); it_c++) {
|
||||
if((*it_c)->getMyButton() == BUTTON_BIG_BLIND) {
|
||||
bigBlindPosition = (*it_c)->getMyUniqueID();
|
||||
break;
|
||||
};
|
||||
}
|
||||
|
||||
// search player in runningPlayerList before first action player -> run() determine next player who will do first action
|
||||
PlayerListIterator it_1, it_2, it_3;
|
||||
|
||||
@@ -80,7 +89,7 @@ LocalBeRoPreflop::LocalBeRoPreflop(HandInterface* hi, int id, int dP, int sB) :
|
||||
|
||||
setCurrentPlayersTurnIt(getLastPlayersTurnIt());
|
||||
|
||||
cout << "playerID constructor preflopRun(): " << (*(getCurrentPlayersTurnIt()))->getMyID() << endl;
|
||||
// cout << "playerID constructor beropreflop: " << (*(getCurrentPlayersTurnIt()))->getMyID() << endl;
|
||||
|
||||
|
||||
/////////////// testing
|
||||
|
||||
Reference in New Issue
Block a user