![]() |
TrinityCore
|
#include <Chat.h>
Inheritance diagram for ChatHandler:Public Member Functions | |
| bool | IsConsole () const |
| WorldSession * | GetSession () |
| WorldSession const * | GetSession () const |
| Player * | GetPlayer () const |
| ChatHandler (WorldSession *session) | |
| ChatHandler (ChatHandler const &)=delete | |
| ChatHandler (ChatHandler &&)=delete | |
| ChatHandler & | operator= (ChatHandler const &)=delete |
| ChatHandler & | operator= (ChatHandler &&)=delete |
| virtual | ~ChatHandler ()=default |
| virtual char const * | GetTrinityString (uint32 entry) const |
| virtual void | SendSysMessage (std::string_view str, bool escapeCharacters=false) |
| void | SendSysMessage (uint32 entry) |
| void | SendSysMessage (std::string_view messageFormat, fmt::printf_args messageFormatArgs) noexcept |
| template<typename... Args> | |
| void | PSendSysMessage (char const *fmt, Args &&... args) |
| template<typename... Args> | |
| void | PSendSysMessage (uint32 entry, Args &&... args) |
| template<typename... Args> | |
| std::string | PGetParseString (uint32 entry, Args &&... args) const noexcept |
| 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) |
| Player * | getSelectedPlayer () |
| Creature * | getSelectedCreature () |
| Unit * | getSelectedUnit () |
| WorldObject * | getSelectedObject () |
| Player * | getSelectedPlayerOrSelf () |
| 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 |
| GameObject * | GetNearbyGameObject () |
| GameObject * | GetObjectFromPlayerMapByDbGuid (ObjectGuid::LowType lowguid) |
| Creature * | GetCreatureFromPlayerMapByDbGuid (ObjectGuid::LowType lowguid) |
| bool | HasSentErrorMessage () const |
| void | SetSentErrorMessage (bool val) |
Static Public Member Functions | |
| static char * | LineFromMessage (char *&pos) |
| template<typename... Args> | |
| static std::string | PGetParseString (std::string_view fmt, Args &&... args) noexcept |
| static std::string | StringVPrintf (std::string_view messageFormat, fmt::printf_args messageFormatArgs) noexcept |
Protected Member Functions | |
| ChatHandler () | |
Private Attributes | |
| WorldSession * | m_session |
| bool | sentErrorMessage |
|
inlineexplicit |
|
delete |
|
delete |
|
virtualdefault |
| bool ChatHandler::_ParseCommands | ( | std::string_view | text | ) |
| char * ChatHandler::extractKeyFromLink | ( | char * | text, |
| char const *const * | linkTypes, | ||
| int * | found_idx, | ||
| char ** | something1 = nullptr |
||
| ) |
| char * ChatHandler::extractKeyFromLink | ( | char * | text, |
| char const * | linkType, | ||
| char ** | something1 = nullptr |
||
| ) |
| ObjectGuid::LowType ChatHandler::extractLowGuidFromLink | ( | char * | text, |
| HighGuid & | guidHigh | ||
| ) |
| std::string ChatHandler::extractPlayerNameFromLink | ( | char * | text | ) |
| bool ChatHandler::extractPlayerTarget | ( | char * | args, |
| Player ** | player, | ||
| ObjectGuid * | player_guid = nullptr, |
||
| std::string * | player_name = nullptr |
||
| ) |
| char * ChatHandler::extractQuotedArg | ( | char * | args | ) |
| Creature * ChatHandler::GetCreatureFromPlayerMapByDbGuid | ( | ObjectGuid::LowType | lowguid | ) |
|
virtual |
Reimplemented in CliHandler.
Definition at line 56 of file Chat.cpp.
Here is the caller graph for this function:| std::string ChatHandler::GetNameLink | ( | Player * | chr | ) | const |
| GameObject * ChatHandler::GetNearbyGameObject | ( | ) |
| GameObject * ChatHandler::GetObjectFromPlayerMapByDbGuid | ( | ObjectGuid::LowType | lowguid | ) |
| Player * ChatHandler::GetPlayer | ( | ) | const |
| bool ChatHandler::GetPlayerGroupAndGUIDByName | ( | const char * | cname, |
| Player *& | player, | ||
| Group *& | group, | ||
| ObjectGuid & | guid, | ||
| bool | offline = false |
||
| ) |
| Creature * ChatHandler::getSelectedCreature | ( | ) |
| WorldObject * ChatHandler::getSelectedObject | ( | ) |
| Player * ChatHandler::getSelectedPlayer | ( | ) |
| Player * ChatHandler::getSelectedPlayerOrSelf | ( | ) |
| Unit * ChatHandler::getSelectedUnit | ( | ) |
|
inline |
|
inline |
|
virtual |
Reimplemented in CliHandler.
Definition at line 593 of file Chat.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Reimplemented in CliHandler.
Definition at line 598 of file Chat.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Reimplemented in CliHandler.
Definition at line 46 of file Chat.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool ChatHandler::HasLowerSecurity | ( | Player * | target, |
| ObjectGuid | guid, | ||
| bool | strong = false |
||
| ) |
| bool ChatHandler::HasLowerSecurityAccount | ( | WorldSession * | target, |
| uint32 | account, | ||
| bool | strong = false |
||
| ) |
|
virtual |
Reimplemented in CliHandler.
Definition at line 51 of file Chat.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in AddonChannelCommandHandler.
|
static |
|
virtual |
Reimplemented in CliHandler.
Definition at line 587 of file Chat.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
delete |
|
delete |
|
virtual |
Reimplemented in CliHandler, and AddonChannelCommandHandler.
Definition at line 181 of file Chat.cpp.
Here is the call graph for this function:
|
inlinestaticnoexcept |
|
inlinenoexcept |
| std::string ChatHandler::playerLink | ( | std::string const & | name | ) | const |
|
inline |
|
inline |
| void ChatHandler::SendGlobalGMSysMessage | ( | const char * | str | ) |
| void ChatHandler::SendGlobalSysMessage | ( | const char * | str | ) |
|
noexcept |
|
virtual |
Reimplemented in AddonChannelCommandHandler, CliHandler, and AddonChannelCommandHandler.
Definition at line 111 of file Chat.cpp.
Here is the call graph for this function:| void ChatHandler::SendSysMessage | ( | uint32 | entry | ) |
|
staticnoexcept |
|
private |