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:40:59 +0000
committerStijn Buys <ingar@osirion.org>2008-02-13 00:40:59 +0000
commit1f95c377b2abfaa454b1f2298af10956d95ad941 (patch)
tree2715cf49a8de16921775eff0dc1ac0ceace145b2 /src/core/core.h
parent468ab7f566ee493b8c7ff6a95763d99ed2ccc200 (diff)
split client from game module
Diffstat (limited to 'src/core/core.h')
-rw-r--r--src/core/core.h30
1 files changed, 10 insertions, 20 deletions
diff --git a/src/core/core.h b/src/core/core.h
index 0e23386..a3c5f0d 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -7,41 +7,31 @@
#ifndef __INCLUDED_CORE_H__
#define __INCLUDED_CORE_H__
+#include "core/entity.h"
#include "core/player.h"
#include "core/gameinterface.h"
#include "core/application.h"
+#include "core/commandbuffer.h"
+#include "core/cvar.h"
+#include "core/func.h"
/// core contains the basic functionality of the engine
namespace core
{
+
/// pointer to the current GameInterface
-inline GameInterface *game()
-{
- return GameInterface::instance();
-}
+GameInterface *game();
/// pointer to the current ApplicationInterface
-inline Application *application()
-{
- return Application::instance();
-}
+Application *application();
/// true if the core is connected to a game module
-inline bool connected()
-{
- return (GameInterface::instance() && GameInterface::instance()->connected);
-}
+bool connected();
/// return the time the core has been running, in seconds
-inline float time()
-{
- return Application::instance()->current_time;
-}
-};
+float time();
-#include "core/commandbuffer.h"
-#include "core/cvar.h"
-#include "core/func.h"
+}
#endif // __INCLUDED_CORE_H__