Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/gameinterface.h')
-rw-r--r--src/core/gameinterface.h27
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;