adds activePlayerList and runningPlayerList (VII) - BUGGY !!! please checkout rev856 for game play
This commit is contained in:
+8
-1
@@ -150,13 +150,20 @@ void Game::initHand()
|
|||||||
// Spieler mit leerem Cash auf inactive setzen
|
// Spieler mit leerem Cash auf inactive setzen
|
||||||
PlayerListIterator it;
|
PlayerListIterator it;
|
||||||
|
|
||||||
for(it = activePlayerList->begin(); it != activePlayerList->end(); it++) {
|
// cout << "id: " << actualHandID << endl;
|
||||||
|
|
||||||
|
for(it=activePlayerList->begin(); it!=activePlayerList->end(); it++) {
|
||||||
|
|
||||||
|
// cout << "player" << (*it)->getMyID() << ": " << (*it)->getMyCash() << endl;
|
||||||
|
|
||||||
if((*it)->getMyCash() == 0) {
|
if((*it)->getMyCash() == 0) {
|
||||||
(*it)->setMyActiveStatus(0);
|
(*it)->setMyActiveStatus(0);
|
||||||
it = activePlayerList->erase(it);
|
it = activePlayerList->erase(it);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// cout << activePlayerList->size() << endl;
|
||||||
|
|
||||||
//Spieler Action auf 0 setzen
|
//Spieler Action auf 0 setzen
|
||||||
for(i=0; i<MAX_NUMBER_OF_PLAYERS; i++) {
|
for(i=0; i<MAX_NUMBER_OF_PLAYERS; i++) {
|
||||||
playerArray[i]->setMyAction(0);
|
playerArray[i]->setMyAction(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user