Game configuration now placed in a struct. Prepared to send/receive game configuration over tcp.

This commit is contained in:
lotodore
2007-04-26 23:07:08 +00:00
parent e202a83fbc
commit 29b6050ee1
16 changed files with 133 additions and 37 deletions
+3 -1
View File
@@ -30,6 +30,7 @@ class ServerContext;
class ServerRecvThread;
class ServerSenderCallback;
class SenderThread;
struct GameData;
class ServerThread : public Thread
{
@@ -38,7 +39,8 @@ public:
virtual ~ServerThread();
// Set the parameters.
void Init(unsigned serverPort, bool ipv6, const std::string &pwd);
void Init(unsigned serverPort, bool ipv6, const std::string &pwd,
const GameData &gameData);
void StartGame();
ServerCallback &GetCallback();