Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-02-03 18:53:40 +0000
committerStijn Buys <ingar@osirion.org>2008-02-03 18:53:40 +0000
commit43b994017a560a2fa97894ebfe121375d6614b6f (patch)
treebebdf504c283a797707f92d46e7d3ed8b5100a9d /src/core/gameinterface.h
parent6011bbb179f72a370411960eafdbbc98e6607f05 (diff)
basic client console
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;
};
}