From e942db1c8d87b7db286545d72c604e879f7aeab0 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 9 Jul 2011 14:11:44 +0000 Subject: Cleanup of the messaging interface. --- src/core/gameserver.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/core/gameserver.h') diff --git a/src/core/gameserver.h b/src/core/gameserver.h index 2e1aa2a..56d0361 100644 --- a/src/core/gameserver.h +++ b/src/core/gameserver.h @@ -60,6 +60,11 @@ public: /// kick a player from the server void kick(Player *player, std::string const &reason); + + /*----- messages -------------------------------------------------- */ + + /// send a message to a single player + void message(Player *player, core::Message::Channel channel, const std::string text); /// broadcast an Info message to all players void broadcast(std::string const message, Player *ignore_player = 0); @@ -72,6 +77,8 @@ public: /// broadcast a sound to all players void broadcast_sound(std::string const sound, Player *ignore_player = 0); + + /// a player sends a command to the game server void exec(Player *player, std::string const &cmdline); -- cgit v1.2.3