Configuration is transferred. A new game should be started on client side, but signal/slot is not working yet. Oh well.

This commit is contained in:
lotodore
2007-04-27 21:35:18 +00:00
parent ea5d62261c
commit 73a5117066
19 changed files with 324 additions and 134 deletions
+6 -2
View File
@@ -30,6 +30,7 @@
#include <net/connectdata.h>
#include <net/sessiondata.h>
#include <net/servercallback.h>
#include <playerdata.h>
#define RECEIVER_THREAD_TERMINATE_TIMEOUT 200
@@ -82,8 +83,10 @@ protected:
SenderThread &GetSender();
ReceiverHelper &GetReceiver();
const GameData &GetGameData();
bool CheckPassword(const std::string &password);
const GameData &GetGameData() const;
bool CheckPassword(const std::string &password) const;
PlayerDataList &GetPlayerDataList();
ServerSenderCallback &GetSenderCallback();
@@ -105,6 +108,7 @@ private:
std::auto_ptr<ServerSenderCallback> m_senderCallback;
std::auto_ptr<GameData> m_gameData;
PlayerDataList m_playerDataList;
std::string m_password;
ServerCallback &m_callback;