First work on client code to support multiple games per server.

This commit is contained in:
lotodore
2007-08-20 23:25:12 +00:00
parent 95e5ee47cc
commit 697f063eb1
5 changed files with 75 additions and 2 deletions
+18
View File
@@ -201,6 +201,24 @@ protected:
virtual int InternalProcess(ClientThread &client, boost::shared_ptr<NetPacket> packet);
};
// State: Wait for Join.
class ClientStateWaitJoin : public AbstractClientStateReceiving
{
public:
// Access the state singleton.
static ClientStateWaitJoin &Instance();
virtual ~ClientStateWaitJoin();
protected:
// Protected constructor - this is a singleton.
ClientStateWaitJoin();
virtual int InternalProcess(ClientThread &client, boost::shared_ptr<NetPacket> packet);
};
// State: Wait for start of the game or start info.
class ClientStateWaitGame : public AbstractClientStateReceiving
{