summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-11-19 18:17:35 +0100
committerGitHub <noreply@github.com>2016-11-19 18:17:35 +0100
commit4ff997398773de36799b128bd4987cd36751f0c5 (patch)
tree2e102088f7f8c1bb4b398de9043cf36c4e42767a /src/Entities/Player.h
parentUpdated the Core. (diff)
parentRemoved ClientHandle.h dependencies from common headers. (diff)
downloadcuberite-4ff997398773de36799b128bd4987cd36751f0c5.tar
cuberite-4ff997398773de36799b128bd4987cd36751f0c5.tar.gz
cuberite-4ff997398773de36799b128bd4987cd36751f0c5.tar.bz2
cuberite-4ff997398773de36799b128bd4987cd36751f0c5.tar.lz
cuberite-4ff997398773de36799b128bd4987cd36751f0c5.tar.xz
cuberite-4ff997398773de36799b128bd4987cd36751f0c5.tar.zst
cuberite-4ff997398773de36799b128bd4987cd36751f0c5.zip
Diffstat (limited to 'src/Entities/Player.h')
-rw-r--r--src/Entities/Player.h28
1 files changed, 13 insertions, 15 deletions
diff --git a/src/Entities/Player.h b/src/Entities/Player.h
index 3de1a4cb5..dab814692 100644
--- a/src/Entities/Player.h
+++ b/src/Entities/Player.h
@@ -5,7 +5,6 @@
#include "../Inventory.h"
#include "../Defines.h"
#include "../World.h"
-#include "../ClientHandle.h"
#include "../Statistics.h"
@@ -248,20 +247,19 @@ public:
// tolua_begin
- 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); }
- void SendMessage (const cCompositeChat & a_Message) { m_ClientHandle->SendChat(a_Message); }
- void SendMessageRaw (const AString & a_MessageRaw, eChatType a_Type = eChatType::ctChatBox) { m_ClientHandle->SendChatRaw(a_MessageRaw, a_Type); }
-
- void SendSystemMessage (const AString & a_Message) { m_ClientHandle->SendChatSystem(a_Message, mtCustom); }
- void SendAboveActionBarMessage(const AString & a_Message) { m_ClientHandle->SendChatAboveActionBar(a_Message, mtCustom); }
- void SendSystemMessage (const cCompositeChat & a_Message) { m_ClientHandle->SendChatSystem(a_Message); }
- void SendAboveActionBarMessage(const cCompositeChat & a_Message) { m_ClientHandle->SendChatAboveActionBar(a_Message); }
+ void SendMessage (const AString & a_Message);
+ void SendMessageInfo (const AString & a_Message);
+ void SendMessageFailure (const AString & a_Message);
+ void SendMessageSuccess (const AString & a_Message);
+ void SendMessageWarning (const AString & a_Message);
+ void SendMessageFatal (const AString & a_Message);
+ void SendMessagePrivateMsg (const AString & a_Message, const AString & a_Sender);
+ void SendMessage (const cCompositeChat & a_Message);
+ void SendMessageRaw (const AString & a_MessageRaw, eChatType a_Type = eChatType::ctChatBox);
+ void SendSystemMessage (const AString & a_Message);
+ void SendAboveActionBarMessage(const AString & a_Message);
+ void SendSystemMessage (const cCompositeChat & a_Message);
+ void SendAboveActionBarMessage(const cCompositeChat & a_Message);
const AString & GetName(void) const { return m_PlayerName; }
void SetName(const AString & a_Name) { m_PlayerName = a_Name; }