diff options
author | Stijn Buys <ingar@osirion.org> | 2008-02-04 00:54:30 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-02-04 00:54:30 +0000 |
commit | 840f9b8678f607aecc15d47bc77248c4ac8b8574 (patch) | |
tree | f90688ca7afabb8e4123e1a811dd168a86717a3c /src/core/core.h | |
parent | 43b994017a560a2fa97894ebfe121375d6614b6f (diff) |
tweaked console
client status with timer and fps
core connect/disconnect
Diffstat (limited to 'src/core/core.h')
-rw-r--r-- | src/core/core.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/core.h b/src/core/core.h index 64eadb1..eb8e067 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -10,8 +10,6 @@ #include "core/gameinterface.h" #include "core/applicationinterface.h" -#define MAXCMDSIZE 1024 - /// core contains the basic functionality of the engine namespace core { @@ -20,6 +18,12 @@ namespace core /// pointer to the current ApplicationInterface inline ApplicationInterface *application() { return ApplicationInterface::instance(); } + + /// 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 ApplicationInterface::instance()->current_time; } }; #include "core/commandbuffer.h" |