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
+3 -2
View File
@@ -33,6 +33,7 @@
class Log;
class ConfigFile;
class Session;
class Game;
class GuiInterface;
class BoardInterface;
@@ -108,7 +109,7 @@ signals:
void signalNetClientError(int errorID, int osErrorID);
void signalNetClientPlayerJoined(QString playerName);
void signalNetClientPlayerLeft(QString playerName);
void signalNetClientGameStart();
void signalNetClientGameStart(boost::shared_ptr<Game> game);
void signalNetServerPlayerJoined(QString playerName);
void signalNetServerPlayerLeft(QString playerName);
@@ -231,7 +232,7 @@ public slots:
void paintStartSplash();
void networkError(int, int);
void networkStart();
void networkStart(boost::shared_ptr<Game> game);
void closeEvent(QCloseEvent*);