Two step initialization for engine. First step: Create and initialize objects (constructor). Second step: Start the engine, update the UI.
This commit is contained in:
+5
-7
@@ -75,6 +75,11 @@ void Session::startGame(const GameData &gameData) {
|
||||
playerDataList.push_back(playerData);
|
||||
}
|
||||
currentGame = new Game(myGui, playerDataList, gameData, currentGameID);
|
||||
|
||||
//// SPIEL-SCHLEIFE
|
||||
currentGame->initHand();
|
||||
currentGame->startHand();
|
||||
// SPIEL-SCHLEIFE
|
||||
}
|
||||
|
||||
void Session::deleteGame() {
|
||||
@@ -172,10 +177,3 @@ void Session::terminateNetworkServer()
|
||||
myNetServer = 0;
|
||||
}
|
||||
|
||||
bool Session::isNetworkServerRunning() const
|
||||
{
|
||||
// TODO: Hack
|
||||
// TODO: Every function which calls this function is also hacked.
|
||||
return myNetServer != 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user