Client engine factory needs to be free of configuration file (configuration provided by server). Separated specific start data from general game data. Sending client game object to GUI after creation. Client thread now manages player and game data.

This commit is contained in:
lotodore
2007-05-20 00:16:29 +00:00
parent e7b31f2d44
commit 4a53678291
25 changed files with 285 additions and 133 deletions
+4 -4
View File
@@ -23,6 +23,7 @@
#include "playerdata.h"
#include "game_defs.h"
#include <string>
#include <boost/shared_ptr.hpp>
class GuiInterface;
class Game;
@@ -37,9 +38,8 @@ public:
~Session();
void startLocalGame(const GameData &gameData);
void startClientGame(const GameData &gameData, const PlayerDataList &playerDataList);
void deleteGame();
void startLocalGame(const GameData &gameData, const StartData &startData);
void startClientGame(boost::shared_ptr<Game> game);
Game *getCurrentGame();
@@ -63,7 +63,7 @@ private:
ClientThread *myNetClient;
ServerThread *myNetServer;
Game *currentGame;
boost::shared_ptr<Game> currentGame;
GuiInterface *myGui;
ConfigFile *myConfig;