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

Public Member Functions

 DefenseMessageBuilder (uint32 zoneId, uint32 id)
 
WorldPackets::Chat::DefenseMessageoperator() (LocaleConstant locale) const
 

Private Attributes

uint32 _zoneId
 ZoneId. More...
 
uint32 _id
 BroadcastTextId. More...
 

Constructor & Destructor Documentation

DefenseMessageBuilder::DefenseMessageBuilder ( uint32  zoneId,
uint32  id 
)
inline
35  : _zoneId(zoneId), _id(id) { }
uint32 _zoneId
ZoneId.
Definition: OutdoorPvP.cpp:48
uint32 _id
BroadcastTextId.
Definition: OutdoorPvP.cpp:49

Member Function Documentation

WorldPackets::Chat::DefenseMessage* DefenseMessageBuilder::operator() ( LocaleConstant  locale) const
inline
38  {
39  std::string text = sOutdoorPvPMgr->GetDefenseMessage(_zoneId, _id, locale);
40 
42  defenseMessage->ZoneID = _zoneId;
43  defenseMessage->MessageText = text;
44  return defenseMessage;
45  }
#define sOutdoorPvPMgr
Definition: OutdoorPvPMgr.h:105
uint32 _zoneId
ZoneId.
Definition: OutdoorPvP.cpp:48
uint32 _id
BroadcastTextId.
Definition: OutdoorPvP.cpp:49
std::string MessageText
Definition: ChatPackets.h:290
Definition: ChatPackets.h:282
int32 ZoneID
Definition: ChatPackets.h:289

Member Data Documentation

uint32 DefenseMessageBuilder::_id
private

BroadcastTextId.

uint32 DefenseMessageBuilder::_zoneId
private

ZoneId.


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