one ConfigFile for all

This commit is contained in:
doitux
2007-05-13 18:17:25 +00:00
parent 60eb04a920
commit e2d394f576
7 changed files with 29 additions and 26 deletions
+3 -3
View File
@@ -30,12 +30,12 @@
using namespace std;
Game::Game(GuiInterface* gui, const PlayerDataList &playerDataList, const GameData &gameData, int gameId)
Game::Game(GuiInterface* gui, const PlayerDataList &playerDataList, const GameData &gameData, int gameId, ConfigFile *c)
: myGui(gui), actualHand(0), actualBoard(0), startQuantityPlayers(gameData.numberOfPlayers),
startCash(gameData.startCash), startSmallBlind(gameData.smallBlind),
startHandsBeforeRaiseSmallBlind(gameData.handsBeforeRaise),
myGameID(gameId), actualQuantityPlayers(gameData.numberOfPlayers),
actualSmallBlind(gameData.smallBlind), actualHandID(0), dealerPosition(0)
actualSmallBlind(gameData.smallBlind), actualHandID(0), dealerPosition(0), myConfig(c)
{
// cout << "Create Game Object" << "\n";
int i;
@@ -47,7 +47,7 @@ Game::Game(GuiInterface* gui, const PlayerDataList &playerDataList, const GameDa
}
//EngineFactory erstellen
myFactory = new LocalEngineFactory; // LocalEngine erstellen
myFactory = new LocalEngineFactory(myConfig); // LocalEngine erstellen
// Board erstellen