adds activePlayerList and runningPlayerList (XVIII)

This commit is contained in:
doitux
2007-09-27 18:07:03 +00:00
parent 78bf4820af
commit 6d30e324e0
7 changed files with 267 additions and 90 deletions
+11 -2
View File
@@ -292,8 +292,17 @@ void LocalBeRo::run() {
// aktuelle bero ist wirklich dran
// Anzahl der effektiv gespielten Runden (des human player) erhöhen
if(myHand->getPlayerArray()[0]->getMyActiveStatus() && myHand->getPlayerArray()[0]->getMyAction() != 1) {
myHand->setBettingRoundsPlayed(myBeRoID);
// if(myHand->getPlayerArray()[0]->getMyActiveStatus() && myHand->getPlayerArray()[0]->getMyAction() != 1) {
// myHand->setBettingRoundsPlayed(myBeRoID);
// }
// Anzahl der effektiv gespielten Runden (des human player) erhöhen
it_c = myHand->getActivePlayerIt(0);
if( it_c != myHand->getActivePlayerList()->end() ) {
// human player is active
if( (*it_c)->getMyAction() != PLAYER_ACTION_FOLD ) {
myHand->setBettingRoundsPlayed(myBeRoID);
}
}
//// !!!!!!!!!!!!!!!!1!!!! very buggy, rule breaking -> TODO !!!!!!!!!!!!11!!!!!!!! //////////////