![]() |
TrinityCore
|
#include <CreatureTextMgr.h>
Public Member Functions | |
| void | LoadCreatureTexts () |
| void | LoadCreatureTextLocales () |
| CreatureTextMap const & | GetTextMap () const |
| void | SendSound (Creature *source, uint32 sound, ChatMsg msgType, WorldObject const *whisperTarget, CreatureTextRange range, Team team, bool gmOnly) |
| void | SendEmote (Unit *source, Emote emote) |
| uint32 | SendChat (Creature *source, uint8 textGroup, WorldObject const *whisperTarget=nullptr, ChatMsg msgType=CHAT_MSG_ADDON, Language language=LANG_ADDON, CreatureTextRange range=TEXT_RANGE_NORMAL, uint32 sound=0, Team team=TEAM_OTHER, bool gmOnly=false, Player *srcPlr=nullptr) |
| bool | TextExist (uint32 sourceEntry, uint8 textGroup) |
| std::string | GetLocalizedChatString (uint32 entry, uint8 gender, uint8 textGroup, uint32 id, LocaleConstant locale) const |
| template<class Builder > | |
| void | SendChatPacket (WorldObject *source, Builder const &builder, ChatMsg msgType, WorldObject const *whisperTarget=nullptr, CreatureTextRange range=TEXT_RANGE_NORMAL, Team team=TEAM_OTHER, bool gmOnly=false) const |
Static Public Member Functions | |
| static CreatureTextMgr * | instance () |
Private Member Functions | |
| CreatureTextMgr () | |
| ~CreatureTextMgr () | |
| void | SendNonChatPacket (WorldObject *source, WorldPacket const *data, ChatMsg msgType, WorldObject const *whisperTarget, CreatureTextRange range, Team team, bool gmOnly) const |
| float | GetRangeForChatType (ChatMsg msgType) const |
Private Attributes | |
| CreatureTextMap | mTextMap |
| LocaleCreatureTextMap | mLocaleTextMap |
Definition at line 80 of file CreatureTextMgr.h.
|
inlineprivate |
Definition at line 83 of file CreatureTextMgr.h.
|
inlineprivate |
Definition at line 84 of file CreatureTextMgr.h.
| std::string CreatureTextMgr::GetLocalizedChatString | ( | uint32 | entry, |
| uint8 | gender, | ||
| uint8 | textGroup, | ||
| uint32 | id, | ||
| LocaleConstant | locale | ||
| ) | const |
|
private |
|
inline |
Definition at line 91 of file CreatureTextMgr.h.
|
static |
Definition at line 79 of file CreatureTextMgr.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void CreatureTextMgr::LoadCreatureTextLocales | ( | ) |
| void CreatureTextMgr::LoadCreatureTexts | ( | ) |
| uint32 CreatureTextMgr::SendChat | ( | Creature * | source, |
| uint8 | textGroup, | ||
| WorldObject const * | whisperTarget = nullptr, |
||
| ChatMsg | msgType = CHAT_MSG_ADDON, |
||
| Language | language = LANG_ADDON, |
||
| CreatureTextRange | range = TEXT_RANGE_NORMAL, |
||
| uint32 | sound = 0, |
||
| Team | team = TEAM_OTHER, |
||
| bool | gmOnly = false, |
||
| Player * | srcPlr = nullptr |
||
| ) |
| void CreatureTextMgr::SendChatPacket | ( | WorldObject * | source, |
| Builder const & | builder, | ||
| ChatMsg | msgType, | ||
| WorldObject const * | whisperTarget = nullptr, |
||
| CreatureTextRange | range = TEXT_RANGE_NORMAL, |
||
| Team | team = TEAM_OTHER, |
||
| bool | gmOnly = false |
||
| ) | const |
Definition at line 87 of file CreatureTextMgrImpl.h.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 386 of file CreatureTextMgr.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 307 of file CreatureTextMgr.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void CreatureTextMgr::SendSound | ( | Creature * | source, |
| uint32 | sound, | ||
| ChatMsg | msgType, | ||
| WorldObject const * | whisperTarget, | ||
| CreatureTextRange | range, | ||
| Team | team, | ||
| bool | gmOnly | ||
| ) |
Definition at line 299 of file CreatureTextMgr.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 394 of file CreatureTextMgr.cpp.
|
private |
Definition at line 109 of file CreatureTextMgr.h.
|
private |
Definition at line 108 of file CreatureTextMgr.h.