First try: Transferring client action.

This commit is contained in:
lotodore
2007-05-23 22:31:56 +00:00
parent f9ad1b6b75
commit 2556f43340
21 changed files with 243 additions and 115 deletions
+22
View File
@@ -135,6 +135,28 @@ protected:
PlayerInterface *GetCurrentPlayer(Game &curGame);
};
// State: Wait for a player action.
class ServerRecvStateWaitPlayerAction : public ServerRecvState
{
public:
// Access the state singleton.
static ServerRecvStateWaitPlayerAction &Instance();
virtual ~ServerRecvStateWaitPlayerAction();
//
virtual void HandleNewConnection(ServerRecvThread &server, boost::shared_ptr<ConnectData> data);
//
virtual int Process(ServerRecvThread &server);
protected:
// Protected constructor - this is a singleton.
ServerRecvStateWaitPlayerAction();
};
// State: Final.
class ServerRecvStateFinal : public ServerRecvState
{