diff options
Diffstat (limited to 'src/core/gameserver.h')
-rw-r--r-- | src/core/gameserver.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/core/gameserver.h b/src/core/gameserver.h index 3f8a2ec..7a2f4a6 100644 --- a/src/core/gameserver.h +++ b/src/core/gameserver.h @@ -32,6 +32,12 @@ public: /// returns true if the game server can not run a time frime inline bool error() { return !server_running; } + /// show a list of connected players + void list_players(); + + /// show the current time + void showtime(); + /*----- mutators -------------------------------------------------- */ /// is called when a player connects to the game server @@ -43,15 +49,9 @@ public: /// run a game server time frame void frame(float seconds); - /// a player requests a list of who is connected - void list_players(Player *player); - /// a player sends a chat message to the public channel void say(Player *player, std::string const &args); - /// a player requests the current time - void showtime(Player *player); - /// broadcast a message to all players void broadcast(std::string const & message, Player *ignore_player = 0); @@ -64,6 +64,9 @@ public: /// send a sound to a single player void send_sound(Player *player, std::string sound); + /// send a rcon message to a single player + void send_rcon(Player *player, std::string message); + /// a player sends a command to the game server void exec(Player *player, std::string const &cmdline); |