From 715d0c3952a3a1d59b64074e472d0a9a3b414351 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 14 Feb 2008 18:04:25 +0000 Subject: dedicated server accepts incoming connections --- src/core/gameinterface.h | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) (limited to 'src/core/gameinterface.h') 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; -- cgit v1.2.3