TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Trinity::CustomChatTextBuilder Class Reference

#include <ChatTextBuilder.h>

Public Member Functions

 CustomChatTextBuilder (WorldObject const *obj, ChatMsg msgType, std::string const &text, Language language=LANG_UNIVERSAL, WorldObject const *target=nullptr)
 
WorldPackets::Chat::Chatoperator() (LocaleConstant locale) const
 

Private Attributes

WorldObject const_source
 
ChatMsg _msgType
 
std::string _text
 
Language _language
 
WorldObject const_target
 

Constructor & Destructor Documentation

Trinity::CustomChatTextBuilder::CustomChatTextBuilder ( WorldObject const obj,
ChatMsg  msgType,
std::string const text,
Language  language = LANG_UNIVERSAL,
WorldObject const target = nullptr 
)
inline
53  : _source(obj), _msgType(msgType), _text(text), _language(language), _target(target) { }
ChatMsg _msgType
Definition: ChatTextBuilder.h:64
WorldObject const * _source
Definition: ChatTextBuilder.h:63
Language _language
Definition: ChatTextBuilder.h:66
WorldObject const * _target
Definition: ChatTextBuilder.h:67
std::string _text
Definition: ChatTextBuilder.h:65

Member Function Documentation

WorldPackets::Chat::Chat* Trinity::CustomChatTextBuilder::operator() ( LocaleConstant  locale) const
inline
56  {
58  chat->Initialize(_msgType, _language, _source, _target, _text, 0, "", locale);
59  return chat;
60  }
ChatMsg _msgType
Definition: ChatTextBuilder.h:64
Definition: ChatPackets.h:150
void Initialize(ChatMsg chatType, Language language, WorldObject const *sender, WorldObject const *receiver, std::string message, uint32 achievementId=0, std::string channelName="", LocaleConstant locale=DEFAULT_LOCALE, std::string addonPrefix="")
Definition: ChatPackets.cpp:104
WorldObject const * _source
Definition: ChatTextBuilder.h:63
Language _language
Definition: ChatTextBuilder.h:66
WorldObject const * _target
Definition: ChatTextBuilder.h:67
std::string _text
Definition: ChatTextBuilder.h:65

+ Here is the call graph for this function:

Member Data Documentation

Language Trinity::CustomChatTextBuilder::_language
private
ChatMsg Trinity::CustomChatTextBuilder::_msgType
private
WorldObject const* Trinity::CustomChatTextBuilder::_source
private
WorldObject const* Trinity::CustomChatTextBuilder::_target
private
std::string Trinity::CustomChatTextBuilder::_text
private

The documentation for this class was generated from the following file: