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-09 23:06:00 +0000
committerStijn Buys <ingar@osirion.org>2008-02-09 23:06:00 +0000
commit31959bc355c471c573828bf63932850e46c4b5bc (patch)
treecc473901e88926e36c89775a7fc97a51da948498 /src/core/core.h
parentd281384f727583b39b8e97ffea58b278ecc8dd47 (diff)
more entities
Diffstat (limited to 'src/core/core.h')
-rw-r--r--src/core/core.h34
1 files changed, 23 insertions, 11 deletions
diff --git a/src/core/core.h b/src/core/core.h
index 6a2d855..0e23386 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -1,30 +1,42 @@
/*
core/core.h
- This file is part of the Osirion project and is distributed under
- the terms of the GNU General Public License version 2
+ This file is part of the Osirion project and is distributed under
+ the terms of the GNU General Public License version 2
*/
#ifndef __INCLUDED_CORE_H__
#define __INCLUDED_CORE_H__
-#include "core/clientstate.h"
+#include "core/player.h"
#include "core/gameinterface.h"
#include "core/application.h"
/// core contains the basic functionality of the engine
namespace core
{
- /// pointer to the current GameInterface
- inline GameInterface *game() { return GameInterface::instance(); }
+/// pointer to the current GameInterface
+inline GameInterface *game()
+{
+ return GameInterface::instance();
+}
- /// pointer to the current ApplicationInterface
- inline Application *application() { return Application::instance(); }
+/// pointer to the current ApplicationInterface
+inline Application *application()
+{
+ return Application::instance();
+}
- /// true if the core is connected to a game module
- inline bool connected() { return (GameInterface::instance() && GameInterface::instance()->connected); }
+/// true if the core is connected to a game module
+inline bool connected()
+{
+ return (GameInterface::instance() && GameInterface::instance()->connected);
+}
- /// return the time the core has been running, in seconds
- inline float time() { return Application::instance()->current_time; }
+/// return the time the core has been running, in seconds
+inline float time()
+{
+ return Application::instance()->current_time;
+}
};
#include "core/commandbuffer.h"