diff options
author | Stijn Buys <ingar@osirion.org> | 2009-07-07 13:41:07 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2009-07-07 13:41:07 +0000 |
commit | 1f71cc5e127f6163e9163afd42453fe145defbeb (patch) | |
tree | 03384a37490395d5d7a67b034db2e8f569a54d0c /src/core/gameserver.cc | |
parent | fb1d166768e516a8493c16064640c98b1efa6707 (diff) |
virtual functions cleanup
Diffstat (limited to 'src/core/gameserver.cc')
-rw-r--r-- | src/core/gameserver.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/gameserver.cc b/src/core/gameserver.cc index b82946b..b222524 100644 --- a/src/core/gameserver.cc +++ b/src/core/gameserver.cc @@ -226,6 +226,16 @@ GameServer::~GameServer() server_instance = 0; } +unsigned long GameServer::timestamp() const +{ + return server_timestamp; +} + +float GameServer::time() const +{ + return ((float)(server_timestamp) / 1000.0f); +} + Info *GameServer::info(const std::string &label) { return Info::find(label); |