Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2009-07-07 13:41:07 +0000
committerStijn Buys <ingar@osirion.org>2009-07-07 13:41:07 +0000
commit1f71cc5e127f6163e9163afd42453fe145defbeb (patch)
tree03384a37490395d5d7a67b034db2e8f569a54d0c /src/core/gameinterface.h
parentfb1d166768e516a8493c16064640c98b1efa6707 (diff)
virtual functions cleanup
Diffstat (limited to 'src/core/gameinterface.h')
-rw-r--r--src/core/gameinterface.h6
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;