playernicks for local game enabled

This commit is contained in:
doitux
2007-01-19 19:13:59 +00:00
parent e1367de95d
commit e715cde49f
14 changed files with 72 additions and 31 deletions
+4 -1
View File
@@ -55,7 +55,10 @@ Game::Game(GuiInterface* g, int qP, int sC, int sB) : myGui(g), actualHand(0), a
// Player erstellen
PlayerInterface *tempPlayer;
for(i=0; i<myGui->getMaxQuantityPlayers(); i++) {
tempPlayer = myFactory->createPlayer(actualBoard, i, startCash, startQuantityPlayers > i, 0);
// cout << myGui->getPlayerName(i) << "\n";
tempPlayer = myFactory->createPlayer(actualBoard, i, myGui->getPlayerName(i), startCash, startQuantityPlayers > i, 0);
playerArray[i] = tempPlayer;
}
actualBoard->setPlayer(playerArray);