diff options
author | Stijn Buys <ingar@osirion.org> | 2008-02-03 18:53:40 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-02-03 18:53:40 +0000 |
commit | 43b994017a560a2fa97894ebfe121375d6614b6f (patch) | |
tree | bebdf504c283a797707f92d46e7d3ed8b5100a9d /src/core/gameinterface.h | |
parent | 6011bbb179f72a370411960eafdbbc98e6607f05 (diff) |
basic client console
Diffstat (limited to 'src/core/gameinterface.h')
-rw-r--r-- | src/core/gameinterface.h | 13 |
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; }; } |