Game admin timeout in lobby (test version).

This commit is contained in:
lotodore
2008-03-06 20:44:37 +00:00
parent 882b47358e
commit e85eb879bb
4 changed files with 76 additions and 5 deletions
+7 -2
View File
@@ -45,6 +45,7 @@ public:
// Initialize after switching to this state.
virtual void Init(ServerGameThread &server) = 0;
virtual void NotifyGameAdminChanged(ServerGameThread &server) = 0;
// Handling of a new session.
virtual void HandleNewSession(ServerGameThread &server, SessionWrapper session) = 0;
@@ -76,6 +77,8 @@ class AbstractServerGameStateRunning : virtual public ServerGameState
public:
virtual ~AbstractServerGameStateRunning();
virtual void NotifyGameAdminChanged(ServerGameThread &/*server*/) {}
// Reject new connections.
virtual void HandleNewSession(ServerGameThread &server, SessionWrapper session);
@@ -94,7 +97,7 @@ public:
};
// State: Initialization.
class ServerGameStateInit : public AbstractServerGameStateReceiving
class ServerGameStateInit : public AbstractServerGameStateReceiving, public AbstractServerGameStateTimer
{
public:
// Access the state singleton.
@@ -102,8 +105,10 @@ public:
virtual ~ServerGameStateInit();
virtual void Init(ServerGameThread & /*server*/) {}
virtual void NotifyGameAdminChanged(ServerGameThread &server);
//
virtual int Process(ServerGameThread &server);
virtual void HandleNewSession(ServerGameThread &server, SessionWrapper session);
protected: