Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
Skyfire::BattlegroundChatBuilder Class Reference
Collaboration diagram for Skyfire::BattlegroundChatBuilder:

Public Member Functions

 BattlegroundChatBuilder (ChatMsg msgtype, int32 textId, Player const *source, Player *const target=NULL, va_list *args=NULL)
void operator() (WorldPacket &data, LocaleConstant loc_idx)

Private Member Functions

void do_helper (WorldPacket &data, char const *text)

Private Attributes

va_list * _args
ChatMsg _msgtype
Player const * _source
Player const * _target
int32 _textId

Detailed Description

Definition at line 31 of file Battleground.cpp.

Constructor & Destructor Documentation

◆ BattlegroundChatBuilder()

Skyfire::BattlegroundChatBuilder::BattlegroundChatBuilder ( ChatMsg msgtype,
int32 textId,
Player const * source,
Player *const target = NULL,
va_list * args = NULL )
inline

Definition at line 34 of file Battleground.cpp.

References _args, _msgtype, _source, _target, and _textId.

Member Function Documentation

◆ do_helper()

void Skyfire::BattlegroundChatBuilder::do_helper ( WorldPacket & data,
char const * text )
inlineprivate

Definition at line 57 of file Battleground.cpp.

References _msgtype, _source, _target, ChatHandler::BuildChatPacket(), and LANG_UNIVERSAL.

Referenced by operator()().

◆ operator()()

void Skyfire::BattlegroundChatBuilder::operator() ( WorldPacket & data,
LocaleConstant loc_idx )
inline

Definition at line 37 of file Battleground.cpp.

References _args, _textId, do_helper(), sObjectMgr, and vsnprintf.

Member Data Documentation

◆ _args

va_list* Skyfire::BattlegroundChatBuilder::_args
private

Definition at line 66 of file Battleground.cpp.

Referenced by BattlegroundChatBuilder(), and operator()().

◆ _msgtype

ChatMsg Skyfire::BattlegroundChatBuilder::_msgtype
private

Definition at line 62 of file Battleground.cpp.

Referenced by BattlegroundChatBuilder(), and do_helper().

◆ _source

Player const* Skyfire::BattlegroundChatBuilder::_source
private

Definition at line 64 of file Battleground.cpp.

Referenced by BattlegroundChatBuilder(), and do_helper().

◆ _target

Player const* Skyfire::BattlegroundChatBuilder::_target
private

Definition at line 65 of file Battleground.cpp.

Referenced by BattlegroundChatBuilder(), and do_helper().

◆ _textId

int32 Skyfire::BattlegroundChatBuilder::_textId
private

Definition at line 63 of file Battleground.cpp.

Referenced by BattlegroundChatBuilder(), and operator()().


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