diff options
Diffstat (limited to 'src/core/gameinterface.h')
-rw-r--r-- | src/core/gameinterface.h | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/src/core/gameinterface.h b/src/core/gameinterface.h index dbb235e..44b4230 100644 --- a/src/core/gameinterface.h +++ b/src/core/gameinterface.h @@ -27,22 +27,28 @@ public: /// type definition for the Players collection typedef std::list<Player *> Players; -/*----- inspectors ---------------------------------------------- */ + /*----- inspectors ---------------------------------------------- */ /// return the local player - inline Player *localplayer() { return &game_localplayer; } + inline Player *localplayer() { + return &game_localplayer; + } - inline Players & players() { return game_players; } + inline Players & players() { + return game_players; + } + + inline model::VertexArray *vertexarray() { + return game_vertexarray; + } - inline model::VertexArray *vertexarray() { return game_vertexarray; } - /// find the first player who's id or name matches the search string Player *find_player(const std::string &search); - + /// show a list of connected players void list_players(); -/*----- virtual inspectors --------------------------------------- */ + /*----- virtual inspectors --------------------------------------- */ /// returns true if the game server can run a time frime virtual bool running() const = 0; @@ -59,14 +65,14 @@ public: /// returns an info record virtual Info *info(const std::string &label) = 0; -/*----- mutators ------------------------------------------------- */ - + /*----- mutators ------------------------------------------------- */ + /// clear all game variables, game functions and entities void clear(); -/*----- virtual mutators ------------------------------------------ */ - + /*----- virtual mutators ------------------------------------------ */ + /// run one game time frame /// @param timestamp current application time virtual void frame(unsigned long timestamp) = 0; |