diff options
author | Stijn Buys <ingar@osirion.org> | 2008-02-14 18:04:25 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-02-14 18:04:25 +0000 |
commit | 715d0c3952a3a1d59b64074e472d0a9a3b414351 (patch) | |
tree | a5d0ddd0613caaf4f9fe01f9a3bd34e823651ad5 /src/core/gameinterface.h | |
parent | 83e8023c5e46635753a609329cf9805a3520001e (diff) |
dedicated server accepts incoming connections
Diffstat (limited to 'src/core/gameinterface.h')
-rw-r--r-- | src/core/gameinterface.h | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/src/core/gameinterface.h b/src/core/gameinterface.h index 6e53575..1fbae03 100644 --- a/src/core/gameinterface.h +++ b/src/core/gameinterface.h @@ -23,17 +23,6 @@ public: /// destroy the game singleton virtual ~GameInterface(); - /// initialize the game - virtual bool init() = 0; - - /// shutdown the game - virtual void shutdown() = 0; - - /// run one frame of the game - /** @param sec time since the previous frame, in seconds - */ - virtual void frame(float seconds) = 0; - /// a pointer to the current game instance static GameInterface * instance(); @@ -42,6 +31,22 @@ public: /// time the game has been running, in seconds float current_time; + + /// run one frame of the game + /// @param sec time since the previous frame, in seconds + virtual void frame(float seconds) = 0; + + /// initialize the game + virtual bool init() = 0; + + /// shutdown the game + virtual void shutdown() = 0; + + /// is called when a player connects + virtual void player_connect(Player &player) = 0; + + /// is called when a player disconnects + virtual void player_disconnect(Player &player) = 0; private: static GameInterface *gameinterface_instance; |