TrinityCore
AddonChannelCommandHandler Class Reference

#include <Chat.h>

+ Inheritance diagram for AddonChannelCommandHandler:

Public Member Functions

bool ParseCommands (std::string_view str) override
 
void SendSysMessage (std::string_view, bool escapeCharacters) override
 
bool IsHumanReadable () const override
 
 ChatHandler (WorldSession *session)
 
 ChatHandler ()
 
virtual void SendSysMessage (std::string_view str, bool escapeCharacters=false)
 
void SendSysMessage (uint32 entry)
 
- Public Member Functions inherited from ChatHandler
bool IsConsole () const
 
WorldSessionGetSession ()
 
WorldSession const * GetSession () const
 
PlayerGetPlayer () const
 
 ChatHandler (WorldSession *session)
 
virtual ~ChatHandler ()
 
virtual char const * GetTrinityString (uint32 entry) const
 
virtual void SendSysMessage (std::string_view str, bool escapeCharacters=false)
 
void SendSysMessage (uint32 entry)
 
template<typename... Args>
void PSendSysMessage (const char *fmt, Args &&... args)
 
template<typename... Args>
void PSendSysMessage (uint32 entry, Args &&... args)
 
template<typename... Args>
std::string PGetParseString (uint32 entry, Args &&... args) const
 
bool _ParseCommands (std::string_view text)
 
virtual bool ParseCommands (std::string_view text)
 
void SendGlobalSysMessage (const char *str)
 
virtual bool IsHumanReadable () const
 
virtual bool HasPermission (uint32 permission) const
 
virtual std::string GetNameLink () const
 
virtual bool needReportToTarget (Player *chr) const
 
virtual LocaleConstant GetSessionDbcLocale () const
 
virtual LocaleConstant GetSessionDbLocaleIndex () const
 
bool HasLowerSecurity (Player *target, ObjectGuid guid, bool strong=false)
 
bool HasLowerSecurityAccount (WorldSession *target, uint32 account, bool strong=false)
 
void SendGlobalGMSysMessage (const char *str)
 
PlayergetSelectedPlayer ()
 
CreaturegetSelectedCreature ()
 
UnitgetSelectedUnit ()
 
WorldObjectgetSelectedObject ()
 
PlayergetSelectedPlayerOrSelf ()
 
char * extractKeyFromLink (char *text, char const *linkType, char **something1=nullptr)
 
char * extractKeyFromLink (char *text, char const *const *linkTypes, int *found_idx, char **something1=nullptr)
 
char * extractQuotedArg (char *args)
 
ObjectGuid::LowType extractLowGuidFromLink (char *text, HighGuid &guidHigh)
 
bool GetPlayerGroupAndGUIDByName (const char *cname, Player *&player, Group *&group, ObjectGuid &guid, bool offline=false)
 
std::string extractPlayerNameFromLink (char *text)
 
bool extractPlayerTarget (char *args, Player **player, ObjectGuid *player_guid=nullptr, std::string *player_name=nullptr)
 
std::string playerLink (std::string const &name) const
 
std::string GetNameLink (Player *chr) const
 
GameObjectGetNearbyGameObject ()
 
GameObjectGetObjectFromPlayerMapByDbGuid (ObjectGuid::LowType lowguid)
 
CreatureGetCreatureFromPlayerMapByDbGuid (ObjectGuid::LowType lowguid)
 
bool HasSentErrorMessage () const
 
void SetSentErrorMessage (bool val)
 

Static Public Attributes

static std::string const PREFIX = "TrinityCore"
 

Private Member Functions

void Send (std::string const &msg)
 
void SendAck ()
 
void SendOK ()
 
void SendFailed ()
 

Private Attributes

char const * echo = nullptr
 
bool hadAck = false
 
bool humanReadable = false
 

Additional Inherited Members

- Static Public Member Functions inherited from ChatHandler
static char * LineFromMessage (char *&pos)
 
- Protected Member Functions inherited from ChatHandler
 ChatHandler ()
 

Detailed Description

Definition at line 146 of file Chat.h.

Member Function Documentation

◆ ChatHandler() [1/2]

ChatHandler::ChatHandler ( )
inlineexplicit

Definition at line 116 of file Chat.h.

◆ ChatHandler() [2/2]

ChatHandler::ChatHandler ( WorldSession session)
inlineexplicit

Definition at line 45 of file Chat.h.

◆ IsHumanReadable()

bool AddonChannelCommandHandler::IsHumanReadable ( ) const
inlineoverridevirtual

Reimplemented from ChatHandler.

Definition at line 155 of file Chat.h.

◆ ParseCommands()

bool AddonChannelCommandHandler::ParseCommands ( std::string_view  str)
overridevirtual

Reimplemented from ChatHandler.

Definition at line 699 of file Chat.cpp.

+ Here is the call graph for this function:

◆ Send()

void AddonChannelCommandHandler::Send ( std::string const &  msg)
private

Definition at line 739 of file Chat.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendAck()

void AddonChannelCommandHandler::SendAck ( )
private

Definition at line 746 of file Chat.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendFailed()

void AddonChannelCommandHandler::SendFailed ( )
private

Definition at line 765 of file Chat.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendOK()

void AddonChannelCommandHandler::SendOK ( )
private

Definition at line 756 of file Chat.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendSysMessage() [1/3]

void ChatHandler::SendSysMessage ( std::string_view  str,
bool  escapeCharacters = false 
)
virtual

Reimplemented from ChatHandler.

Definition at line 52 of file Chat.cpp.

◆ SendSysMessage() [2/3]

void AddonChannelCommandHandler::SendSysMessage ( std::string_view  str,
bool  escapeCharacters 
)
overridevirtual

Reimplemented from ChatHandler.

Definition at line 775 of file Chat.cpp.

+ Here is the call graph for this function:

◆ SendSysMessage() [3/3]

void ChatHandler::SendSysMessage ( uint32  entry)

Definition at line 54 of file Chat.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ echo

char const* AddonChannelCommandHandler::echo = nullptr
private

Definition at line 163 of file Chat.h.

◆ hadAck

bool AddonChannelCommandHandler::hadAck = false
private

Definition at line 164 of file Chat.h.

◆ humanReadable

bool AddonChannelCommandHandler::humanReadable = false
private

Definition at line 165 of file Chat.h.

◆ PREFIX

std::string const AddonChannelCommandHandler::PREFIX = "TrinityCore"
static

Definition at line 149 of file Chat.h.


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