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

#include <ChatTextBuilder.h>

Public Member Functions

 BroadcastTextBuilder (Unit const *obj, ChatMsg msgType, uint32 textId, WorldObject const *target=nullptr, uint32 achievementId=0)
 
WorldPackets::Chat::Chatoperator() (LocaleConstant locale) const
 

Private Attributes

Unit const_source
 
ChatMsg _msgType
 
uint32 _textId
 
WorldObject const_target
 
uint32 _achievementId
 

Constructor & Destructor Documentation

Trinity::BroadcastTextBuilder::BroadcastTextBuilder ( Unit const obj,
ChatMsg  msgType,
uint32  textId,
WorldObject const target = nullptr,
uint32  achievementId = 0 
)
inline
31  : _source(obj), _msgType(msgType), _textId(textId), _target(target), _achievementId(achievementId) { }
uint32 _textId
Definition: ChatTextBuilder.h:44
Unit const * _source
Definition: ChatTextBuilder.h:42
ChatMsg _msgType
Definition: ChatTextBuilder.h:43
WorldObject const * _target
Definition: ChatTextBuilder.h:45
uint32 _achievementId
Definition: ChatTextBuilder.h:46

Member Function Documentation

WorldPackets::Chat::Chat* Trinity::BroadcastTextBuilder::operator() ( LocaleConstant  locale) const
inline
34  {
35  BroadcastTextEntry const* bct = sBroadcastTextStore.LookupEntry(_textId);
38  return chat;
39  }
Definition: SharedDefines.h:961
int32 Language
Definition: DB2Structure.h:115
DB2Storage< BroadcastTextEntry > sBroadcastTextStore("BroadcastText.db2", BroadcastTextFormat, HOTFIX_SEL_BROADCAST_TEXT)
uint32 _textId
Definition: ChatTextBuilder.h:44
Unit const * _source
Definition: ChatTextBuilder.h:42
Definition: ChatPackets.h:150
static char const * GetBroadcastTextValue(BroadcastTextEntry const *broadcastText, LocaleConstant locale=DEFAULT_LOCALE, uint8 gender=GENDER_MALE, bool forceGender=false)
Definition: DB2Stores.cpp:610
Definition: DB2Structure.h:112
Language
Definition: SharedDefines.h:959
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
ChatMsg _msgType
Definition: ChatTextBuilder.h:43
uint8 getGender() const
Definition: Unit.h:1415
WorldObject const * _target
Definition: ChatTextBuilder.h:45
uint32 _achievementId
Definition: ChatTextBuilder.h:46

+ Here is the call graph for this function:

Member Data Documentation

uint32 Trinity::BroadcastTextBuilder::_achievementId
private
ChatMsg Trinity::BroadcastTextBuilder::_msgType
private
Unit const* Trinity::BroadcastTextBuilder::_source
private
WorldObject const* Trinity::BroadcastTextBuilder::_target
private
uint32 Trinity::BroadcastTextBuilder::_textId
private

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