Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/gameinterface.cc')
-rw-r--r--src/core/gameinterface.cc13
1 files changed, 12 insertions, 1 deletions
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;
+}
+
}