From 840f9b8678f607aecc15d47bc77248c4ac8b8574 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 4 Feb 2008 00:54:30 +0000 Subject: tweaked console client status with timer and fps core connect/disconnect --- src/core/gameinterface.h | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'src/core/gameinterface.h') 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; }; } -- cgit v1.2.3