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.cc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/core/gameinterface.cc') diff --git a/src/core/gameinterface.cc b/src/core/gameinterface.cc index d9d8f0c..ac5209b 100644 --- a/src/core/gameinterface.cc +++ b/src/core/gameinterface.cc @@ -44,8 +44,19 @@ void GameInterface::shutdown() game_ready = false; } -bool GameInterface::ready() +bool GameInterface::ready() const { return game_ready; } + +float GameInterface::time() const +{ + return current_time; +} + +void GameInterface::frame (float seconds) +{ + current_time += seconds; +} + } -- cgit v1.2.3