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:
lotodore
2007-05-12 22:00:59 +00:00
parent 7c6337d810
commit 6fbef0af20
15 changed files with 79 additions and 74 deletions
+5 -7
View File
@@ -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;
}