diff options
author | Stijn Buys <ingar@osirion.org> | 2008-09-27 17:16:15 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-09-27 17:16:15 +0000 |
commit | ca0c1d3e6f8b5fa4eb2e0a86fcf47b12fb600786 (patch) | |
tree | 5d72e330f11350065806e83cc8712693241b9aad /src/core/gameinterface.h | |
parent | 29984680d6e0e52efec489497b1796e056164442 (diff) |
mission targets, texture unloading, private messages
Diffstat (limited to 'src/core/gameinterface.h')
-rw-r--r-- | src/core/gameinterface.h | 11 |
1 files changed, 11 insertions, 0 deletions
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<Player *> 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; |