This commit is contained in:
doitux
2007-01-14 13:23:04 +00:00
parent c198ff21a9
commit 34b33a16e7
14 changed files with 50 additions and 72 deletions
+1 -6
View File
@@ -19,14 +19,10 @@
***************************************************************************/
#include "game.h"
#include "localhand.h"
#include "enginefactory.h"
#include "localenginefactory.h"
#include "guiinterface.h"
#include "boardinterface.h"
#include "playerinterface.h"
#include "handinterface.h"
@@ -59,7 +55,6 @@ 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 = new LocalPlayer(actualBoard, i, startCash, startQuantityPlayers > i, 0);
tempPlayer = myFactory->createPlayer(actualBoard, i, startCash, startQuantityPlayers > i, 0);
playerArray[i] = tempPlayer;
}
@@ -119,7 +114,7 @@ void Game::startHand()
}
// Hand erstellen
actualHand = myFactory->createHand(myGui, actualBoard, playerArray, actualHandID, actualQuantityPlayers, dealerPosition, actualSmallBlind, startCash);
actualHand = myFactory->createHand(myFactory, myGui, actualBoard, playerArray, actualHandID, actualQuantityPlayers, dealerPosition, actualSmallBlind, startCash);
//GUI bereinigen