diff options
author | Stijn Buys <ingar@osirion.org> | 2011-07-09 14:11:44 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2011-07-09 14:11:44 +0000 |
commit | e942db1c8d87b7db286545d72c604e879f7aeab0 (patch) | |
tree | 4b07ef3422ee265156e020707c3bc96ecd9ed1e0 /src/core/gameserver.h | |
parent | f39aec30f0e5c6f466681ed34bffd41150976ab9 (diff) |
Cleanup of the messaging interface.
Diffstat (limited to 'src/core/gameserver.h')
-rw-r--r-- | src/core/gameserver.h | 7 |
1 files changed, 7 insertions, 0 deletions
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); |