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.h18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/core/gameinterface.h b/src/core/gameinterface.h
index 1986939..dde7f12 100644
--- a/src/core/gameinterface.h
+++ b/src/core/gameinterface.h
@@ -21,31 +21,27 @@ public:
virtual ~GameInterface();
/// initialize the game
- virtual void init();
+ virtual bool init() = 0;
/// shutdown the game
- virtual void shutdown();
+ virtual void shutdown() = 0;
/// run one frame of the game
/** @param sec time since the previous frame, in seconds
*/
- virtual void frame (float seconds);
+ virtual void frame (float seconds) = 0;
/// a pointer to the current game instance
static GameInterface * instance();
- /// return true if the game is ready and running
- bool ready() const;
+ /// true if the game is ready and running
+ bool connected;
- /// return the current game time, in seconds
- float time() const;
+ /// time the game has been running, in seconds
+ float current_time;
private:
static GameInterface *gameinterface_instance;
-
- bool game_ready;
-
- float current_time;
};
}