From 43b994017a560a2fa97894ebfe121375d6614b6f Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 3 Feb 2008 18:53:40 +0000 Subject: basic client console --- src/core/gameinterface.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/core/gameinterface.h') 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; }; } -- cgit v1.2.3