From ca0c1d3e6f8b5fa4eb2e0a86fcf47b12fb600786 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 27 Sep 2008 17:16:15 +0000 Subject: mission targets, texture unloading, private messages --- src/core/gameinterface.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/core/gameinterface.h') diff --git a/src/core/gameinterface.h b/src/core/gameinterface.h index ef51545..69cd588 100644 --- a/src/core/gameinterface.h +++ b/src/core/gameinterface.h @@ -22,6 +22,9 @@ public: /// destroy the game virtual ~GameInterface(); + /// type definition for the Players collection + typedef std::list Players; + /*----- inspectors ---------------------------------------------- */ /// return the local player @@ -41,6 +44,11 @@ public: inline float timestep() const { return game_timestep; } + inline Players & players() { return game_players; } + + /// show a list of connected players + void list_players(); + /*----- virtual inspectors --------------------------------------- */ /// returns true if the game server can run a time frime @@ -68,6 +76,9 @@ public: protected: /// the local player static Player game_localplayer; + + /// all the players + Players game_players; float game_serverframetime; float game_previousframetime; -- cgit v1.2.3