From a65427370dfe27dfa74efb0bddd44d7ffb9552ac Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Wed, 13 Feb 2008 00:43:21 +0000 Subject: oops --- src/core/core.cc | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/core/core.cc (limited to 'src/core/core.cc') 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; +} + +} + -- cgit v1.2.3