summaryrefslogtreecommitdiffstats
path: root/src/Root.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-02-15 23:26:19 +0100
committermadmaxoft <github@xoft.cz>2014-02-15 23:26:19 +0100
commit52cd9dfe9f7cfc7c229049d98993f13b6b8ddd5d (patch)
treebe08d9dd979ca27cb23ad4e1d9be8f59941704aa /src/Root.h
parentDebuggers: Added code to test cCompositeChat functionality. (diff)
downloadcuberite-52cd9dfe9f7cfc7c229049d98993f13b6b8ddd5d.tar
cuberite-52cd9dfe9f7cfc7c229049d98993f13b6b8ddd5d.tar.gz
cuberite-52cd9dfe9f7cfc7c229049d98993f13b6b8ddd5d.tar.bz2
cuberite-52cd9dfe9f7cfc7c229049d98993f13b6b8ddd5d.tar.lz
cuberite-52cd9dfe9f7cfc7c229049d98993f13b6b8ddd5d.tar.xz
cuberite-52cd9dfe9f7cfc7c229049d98993f13b6b8ddd5d.tar.zst
cuberite-52cd9dfe9f7cfc7c229049d98993f13b6b8ddd5d.zip
Diffstat (limited to '')
-rw-r--r--src/Root.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/Root.h b/src/Root.h
index a1a3ca6a2..4bbd7586f 100644
--- a/src/Root.h
+++ b/src/Root.h
@@ -109,20 +109,18 @@ public:
/// Finds a player from a partial or complete player name and calls the callback - case-insensitive
bool FindAndDoWithPlayer(const AString & a_PlayerName, cPlayerListCallback & a_Callback); // >> EXPORTED IN MANUALBINDINGS <<
- void LoopWorldsAndBroadcastChat(const AString & a_Message, eMessageType a_ChatPrefix);
- void BroadcastChatJoin (const AString & a_Message) { LoopWorldsAndBroadcastChat(a_Message, mtJoin); }
- void BroadcastChatLeave (const AString & a_Message) { LoopWorldsAndBroadcastChat(a_Message, mtLeave); }
- void BroadcastChatDeath (const AString & a_Message) { LoopWorldsAndBroadcastChat(a_Message, mtDeath); }
-
// tolua_begin
/// Sends a chat message to all connected clients (in all worlds)
- void BroadcastChat (const AString & a_Message) { LoopWorldsAndBroadcastChat(a_Message, mtCustom); }
- void BroadcastChatInfo (const AString & a_Message) { LoopWorldsAndBroadcastChat(a_Message, mtInformation); }
- void BroadcastChatFailure(const AString & a_Message) { LoopWorldsAndBroadcastChat(a_Message, mtFailure); }
- void BroadcastChatSuccess(const AString & a_Message) { LoopWorldsAndBroadcastChat(a_Message, mtSuccess); }
- void BroadcastChatWarning(const AString & a_Message) { LoopWorldsAndBroadcastChat(a_Message, mtWarning); }
- void BroadcastChatFatal (const AString & a_Message) { LoopWorldsAndBroadcastChat(a_Message, mtFailure); }
+ void BroadcastChat (const AString & a_Message, eMessageType a_ChatPrefix = mtCustom);
+ void BroadcastChatInfo (const AString & a_Message) { BroadcastChat(a_Message, mtInformation); }
+ void BroadcastChatFailure(const AString & a_Message) { BroadcastChat(a_Message, mtFailure); }
+ void BroadcastChatSuccess(const AString & a_Message) { BroadcastChat(a_Message, mtSuccess); }
+ void BroadcastChatWarning(const AString & a_Message) { BroadcastChat(a_Message, mtWarning); }
+ void BroadcastChatFatal (const AString & a_Message) { BroadcastChat(a_Message, mtFailure); }
+ void BroadcastChatJoin (const AString & a_Message) { BroadcastChat(a_Message, mtJoin); }
+ void BroadcastChatLeave (const AString & a_Message) { BroadcastChat(a_Message, mtLeave); }
+ void BroadcastChatDeath (const AString & a_Message) { BroadcastChat(a_Message, mtDeath); }
void BroadcastChat (const cCompositeChat & a_Message);
/// Returns the textual description of the protocol version: 49 -> "1.4.4". Provided specifically for Lua API