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/gameserver.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/core/gameserver.h') diff --git a/src/core/gameserver.h b/src/core/gameserver.h index ac5f19e..a8d96db 100644 --- a/src/core/gameserver.h +++ b/src/core/gameserver.h @@ -23,7 +23,7 @@ class GameServer : public GameInterface { public: GameServer(); - ~GameServer(); + virtual ~GameServer(); /*----- inspectors ------------------------------------------------ */ @@ -36,8 +36,11 @@ public: /// returns true if the game is running an interactive module virtual bool interactive() const; - /// current server game time - virtual inline unsigned long timestamp() const { return server_timestamp; } + /// return the current game time in seconds + virtual float time() const; + + /// return the current game time + virtual unsigned long timestamp() const; /// current module inline const Module *module() const { return server_module; } -- cgit v1.2.3