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-13 00:43:21 +0000
committerStijn Buys <ingar@osirion.org>2008-02-13 00:43:21 +0000
commita65427370dfe27dfa74efb0bddd44d7ffb9552ac (patch)
treea36632e6b1784054f1845ae0792a90545f245d55 /src/core/core.cc
parent1f95c377b2abfaa454b1f2298af10956d95ad941 (diff)
oops
Diffstat (limited to 'src/core/core.cc')
-rw-r--r--src/core/core.cc33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/core/core.cc b/src/core/core.cc
new file mode 100644
index 0000000..e7aecaf
--- /dev/null
+++ b/src/core/core.cc
@@ -0,0 +1,33 @@
+/*
+ core/core.cc
+ This file is part of the Osirion project and is distributed under
+ the terms of the GNU General Public License version 2.
+*/
+
+#include "core/core.h"
+
+namespace core
+{
+
+GameInterface *game()
+{
+ return GameInterface::instance();
+}
+
+Application *application()
+{
+ return Application::instance();
+}
+
+bool connected()
+{
+ return (GameInterface::instance() && GameInterface::instance()->connected);
+}
+
+float time()
+{
+ return Application::instance()->current_time;
+}
+
+}
+