From 1f71cc5e127f6163e9163afd42453fe145defbeb Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 7 Jul 2009 13:41:07 +0000 Subject: virtual functions cleanup --- src/core/gameinterface.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core/gameinterface.h') 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; -- cgit v1.2.3