From 840f9b8678f607aecc15d47bc77248c4ac8b8574 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 4 Feb 2008 00:54:30 +0000 Subject: tweaked console client status with timer and fps core connect/disconnect --- src/core/core.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/core/core.h') 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" -- cgit v1.2.3