From 9ff5cf6184b9c5183c1f55cfa6c0d08586eb02c9 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 10 Feb 2011 18:07:24 +0000 Subject: Added a local chat channel. The say command defaults to zone chat, global messages can be send with the shout command. Removed NonSolid flag fro race objects, have race use the local chat channel. Updated to network protocol version 22. Updated developer documentation. --- src/core/gameserver.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/core/gameserver.h') diff --git a/src/core/gameserver.h b/src/core/gameserver.h index f0cf88b..ab2bf92 100644 --- a/src/core/gameserver.h +++ b/src/core/gameserver.h @@ -43,7 +43,10 @@ public: /// run a game server time frame void frame(unsigned long timestamp); - /// a player sends a chat message to the public channel + /// a player sends a chat message to the global chat channel + void shout(Player *player, std::string const &args); + + /// a player sends a chat message to the local chat channel void say(Player *player, std::string const &args); /// a player sends a private message to another player @@ -54,6 +57,9 @@ public: /// broadcast an Info message to all players void broadcast(std::string const message, Player *ignore_player = 0); + + /// broadcast an Info message to all players in a particular zone + void broadcast(Zone *zone, std::string const message, Player *ignore_player = 0); /// broadcast a message to all players on a specified channel void broadcast(Message::Channel const channel, std::string const message, Player *ignore_player = 0); -- cgit v1.2.3