diff options
author | Stijn Buys <ingar@osirion.org> | 2008-02-04 00:54:30 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-02-04 00:54:30 +0000 |
commit | 840f9b8678f607aecc15d47bc77248c4ac8b8574 (patch) | |
tree | f90688ca7afabb8e4123e1a811dd168a86717a3c /src/core/gameinterface.h | |
parent | 43b994017a560a2fa97894ebfe121375d6614b6f (diff) |
tweaked console
client status with timer and fps
core connect/disconnect
Diffstat (limited to 'src/core/gameinterface.h')
-rw-r--r-- | src/core/gameinterface.h | 18 |
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; }; } |