diff options
author | Stijn Buys <ingar@osirion.org> | 2008-10-10 16:41:38 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-10-10 16:41:38 +0000 |
commit | 02fcd22d8cde355aa898a8c6bb4773d9434b8e9a (patch) | |
tree | 9397f1f5b61a0978acadc4c15fd330ee7138c59b /src/core/gameconnection.h | |
parent | 4331f5c17901f46693dcb5c2df96276f6851be25 (diff) |
adds KeyPress, DevInfo and Stats widgets
Diffstat (limited to 'src/core/gameconnection.h')
-rw-r--r-- | src/core/gameconnection.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/gameconnection.h b/src/core/gameconnection.h index 973d96f..95df9f3 100644 --- a/src/core/gameconnection.h +++ b/src/core/gameconnection.h @@ -23,14 +23,16 @@ public: /*----- inspectors ------------------------------------------------ */ /// returns true if the game connection can run a time frime - inline bool running() { return connection_running; } + inline bool running() const { return connection_running; } /// returns true if the game connection can not run a time frime - inline bool error() { return !connection_running; } + inline bool error() const { return !connection_running; } /// returns true if the game is running an interactive module - inline bool interactive() { return true; } + inline bool interactive() const { return true; } + /// return the current game time + inline float time() const { return game_clientframetime; } /*----- mutators -------------------------------------------------- */ |