Back to rev. 347
This commit is contained in:
+2
-5
@@ -28,16 +28,13 @@
|
||||
#include "handinterface.h"
|
||||
|
||||
#include "configfile.h"
|
||||
#include "session.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
Game::Game(Session* s, GuiInterface* g, int qP, int sC, int sB, int gId) : mySession(s), myConfig(0), myGui(g), actualHand(0), actualBoard(0), startQuantityPlayers(qP), startCash(sC), startSmallBlind(sB), myGameID(gId), actualQuantityPlayers(qP), actualSmallBlind(sB), actualHandID(0), dealerPosition(0)
|
||||
Game::Game(ConfigFile* c, GuiInterface* g, int qP, int sC, int sB, int gId) : myConfig(c), myGui(g), actualHand(0), actualBoard(0), startQuantityPlayers(qP), startCash(sC), startSmallBlind(sB), myGameID(gId), actualQuantityPlayers(qP), actualSmallBlind(sB), actualHandID(0), dealerPosition(0)
|
||||
{
|
||||
// cout << "Create Game Object" << "\n";
|
||||
int i;
|
||||
|
||||
myConfig = new ConfigFile(mySession->getConfigPath());
|
||||
|
||||
actualHandID = 0;
|
||||
|
||||
@@ -72,7 +69,7 @@ Game::Game(Session* s, GuiInterface* g, int qP, int sC, int sB, int gId) : mySes
|
||||
else { myAvatar << "Opponent" << i << "Avatar"; }
|
||||
|
||||
//PlayerObjekte erzeugen
|
||||
tempPlayer = myFactory->createPlayer(mySession, actualBoard, i, myConfig->readConfigString(myName.str()), myConfig->readConfigString(myAvatar.str()), startCash, startQuantityPlayers > i, 0);
|
||||
tempPlayer = myFactory->createPlayer(actualBoard, i, myConfig->readConfigString(myName.str()), myConfig->readConfigString(myAvatar.str()), startCash, startQuantityPlayers > i, 0);
|
||||
playerArray[i] = tempPlayer;
|
||||
}
|
||||
actualBoard->setPlayer(playerArray);
|
||||
|
||||
Reference in New Issue
Block a user