Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/gameinterface.h')
-rw-r--r--src/core/gameinterface.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/gameinterface.h b/src/core/gameinterface.h
index 22b85d5..8dc401b 100644
--- a/src/core/gameinterface.h
+++ b/src/core/gameinterface.h
@@ -8,6 +8,7 @@
#define __INCLUDED_CORE_GAMEINTERFACE_H__
#include "core/player.h"
+#include "core/info.h"
namespace core
{
@@ -38,6 +39,9 @@ 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
@@ -49,8 +53,8 @@ public:
/// return the current game time
virtual unsigned long timestamp() const = 0;
- /// return the current game time, in seconds
- float time() const { return ((float)(timestamp()) / 1000.0f); }
+ /// returns an info record
+ virtual Info *info(const std::string &label) = 0;
/*----- mutators ------------------------------------------------- */