diff options
Diffstat (limited to 'src/core/gameinterface.h')
-rw-r--r-- | src/core/gameinterface.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/gameinterface.h b/src/core/gameinterface.h index 7d3e086..dbb235e 100644 --- a/src/core/gameinterface.h +++ b/src/core/gameinterface.h @@ -42,9 +42,6 @@ public: /// show a list of connected players void list_players(); - /// return the current game time, in seconds - float time() const { return ((float)(timestamp()) / 1000.0f); } - /*----- virtual inspectors --------------------------------------- */ /// returns true if the game server can run a time frime @@ -53,6 +50,9 @@ public: /// returns true if the game is running an interactive module virtual bool interactive() const = 0; + /// return the current game time in seconds + virtual float time() const = 0; + /// return the current game time virtual unsigned long timestamp() const = 0; |