diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-02-07 19:58:52 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-02-07 19:58:52 +0100 |
commit | 88a64ec40df87f21a89de43fe8bb78f10ee7eeb7 (patch) | |
tree | 631707789a182751d5d7276fb54455d500f94c3b /src/Entities/Player.h | |
parent | Server internally uses new functions (diff) | |
download | cuberite-88a64ec40df87f21a89de43fe8bb78f10ee7eeb7.tar cuberite-88a64ec40df87f21a89de43fe8bb78f10ee7eeb7.tar.gz cuberite-88a64ec40df87f21a89de43fe8bb78f10ee7eeb7.tar.bz2 cuberite-88a64ec40df87f21a89de43fe8bb78f10ee7eeb7.tar.lz cuberite-88a64ec40df87f21a89de43fe8bb78f10ee7eeb7.tar.xz cuberite-88a64ec40df87f21a89de43fe8bb78f10ee7eeb7.tar.zst cuberite-88a64ec40df87f21a89de43fe8bb78f10ee7eeb7.zip |
Diffstat (limited to 'src/Entities/Player.h')
-rw-r--r-- | src/Entities/Player.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/Entities/Player.h b/src/Entities/Player.h index f2830a0c7..869e67775 100644 --- a/src/Entities/Player.h +++ b/src/Entities/Player.h @@ -5,6 +5,7 @@ #include "../Inventory.h" #include "../Defines.h" #include "../World.h" +#include "../ClientHandle.h" @@ -195,13 +196,13 @@ public: cClientHandle * GetClientHandle(void) const { return m_ClientHandle; } - void SendMessage(const AString & a_Message); - void SendMessageInfo(const AString & a_Message) { SendMessage(AppendChatEpithet(a_Message, mtInformation)); } - void SendMessageFailure(const AString & a_Message) { SendMessage(AppendChatEpithet(a_Message, mtFailure)); } - void SendMessageSuccess(const AString & a_Message) { SendMessage(AppendChatEpithet(a_Message, mtSuccess)); } - void SendMessageWarning(const AString & a_Message) { SendMessage(AppendChatEpithet(a_Message, mtWarning)); } - void SendMessageFatal(const AString & a_Message) { SendMessage(AppendChatEpithet(a_Message, mtFailure)); } - void SendMessagePrivateMsg(const AString & a_Message) { SendMessage(AppendChatEpithet(a_Message, mtPrivateMessage)); } + void SendMessage (const AString & a_Message) { m_ClientHandle->SendChat(a_Message, mtCustom); } + void SendMessageInfo (const AString & a_Message) { m_ClientHandle->SendChat(a_Message, mtInformation); } + void SendMessageFailure (const AString & a_Message) { m_ClientHandle->SendChat(a_Message, mtFailure); } + void SendMessageSuccess (const AString & a_Message) { m_ClientHandle->SendChat(a_Message, mtSuccess); } + void SendMessageWarning (const AString & a_Message) { m_ClientHandle->SendChat(a_Message, mtWarning); } + void SendMessageFatal (const AString & a_Message) { m_ClientHandle->SendChat(a_Message, mtFailure); } + void SendMessagePrivateMsg(const AString & a_Message, const AString & a_Sender) { m_ClientHandle->SendChat(a_Message, mtPrivateMessage, a_Sender); } const AString & GetName(void) const { return m_PlayerName; } void SetName(const AString & a_Name) { m_PlayerName = a_Name; } |