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.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/core/gameinterface.h b/src/core/gameinterface.h
index 622aaf5..1986939 100644
--- a/src/core/gameinterface.h
+++ b/src/core/gameinterface.h
@@ -29,18 +29,23 @@ public:
/// run one frame of the game
/** @param sec time since the previous frame, in seconds
*/
- virtual void frame (float sec) = 0;
+ virtual void frame (float seconds);
/// a pointer to the current game instance
static GameInterface * instance();
- /// state of the game
- bool ready();
+ /// return true if the game is ready and running
+ bool ready() const;
+
+ /// return the current game time, in seconds
+ float time() const;
private:
- /// game singleton
static GameInterface *gameinterface_instance;
+
bool game_ready;
+
+ float current_time;
};
}