diff options
author | Stijn Buys <ingar@osirion.org> | 2009-04-15 17:08:51 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2009-04-15 17:08:51 +0000 |
commit | a95028547981614e06ea7a6d22b853b85418cea3 (patch) | |
tree | d4d6998a4118a4d8690ce138d586abfba4893179 /src/core/gameinterface.h | |
parent | 4f33f59571f10019c1e7a0e3640b2f69c159a8cf (diff) |
added info registry, list_info
added network info transfer
added info based buy menu and related game changes
Diffstat (limited to 'src/core/gameinterface.h')
-rw-r--r-- | src/core/gameinterface.h | 8 |
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 ------------------------------------------------- */ |