![]() |
TrinityCore
|
#include <ChatCommandTags.h>
Inheritance diagram for Trinity::ChatCommands::PlayerIdentifier:Public Types | |
| using | value_type = Player * |
Public Types inherited from Trinity::Impl::ChatCommands::ContainerTag | |
| using | ChatCommandResult = Trinity::Impl::ChatCommands::ChatCommandResult |
Public Member Functions | |
| PlayerIdentifier ()=default | |
| PlayerIdentifier (Player &player) | |
| operator ObjectGuid () const | |
| operator std::string const & () const | |
| operator std::string_view () const | |
| std::string const & | GetName () const |
| ObjectGuid | GetGUID () const |
| bool | IsConnected () const |
| Player * | GetConnectedPlayer () const |
| ChatCommandResult | TryConsume (ChatHandler const *handler, std::string_view args) |
Static Public Member Functions | |
| static Optional< PlayerIdentifier > | FromTarget (ChatHandler *handler) |
| static Optional< PlayerIdentifier > | FromSelf (ChatHandler *handler) |
| static Optional< PlayerIdentifier > | FromTargetOrSelf (ChatHandler *handler) |
Private Attributes | |
| std::string | _name |
| ObjectGuid | _guid |
| Player * | _player = nullptr |
Definition at line 159 of file ChatCommandTags.h.
Definition at line 161 of file ChatCommandTags.h.
|
default |
| Trinity::ChatCommands::PlayerIdentifier::PlayerIdentifier | ( | Player & | player | ) |
Definition at line 162 of file ChatCommandTags.cpp.
|
static |
Definition at line 174 of file ChatCommandTags.cpp.
References ChatHandler::GetPlayer().
Referenced by instance_commandscript::HandleInstanceGetBossStateCommand(), and instance_commandscript::HandleInstanceSetBossStateCommand().
|
static |
Definition at line 165 of file ChatCommandTags.cpp.
References ChatHandler::GetPlayer(), and Player::GetSelectedPlayer().
Referenced by character_commandscript::HandleCharacterChangeAccountCommand(), character_commandscript::HandleCharacterChangeFactionCommand(), character_commandscript::HandleCharacterChangeRaceCommand(), character_commandscript::HandleCharacterCustomizeCommand(), character_commandscript::HandleCharacterRenameCommand(), and misc_commandscript::HandleMuteCommand().
|
inlinestatic |
Definition at line 179 of file ChatCommandTags.h.
Referenced by arena_commandscript::HandleArenaCaptainCommand(), arena_commandscript::HandleArenaCreateCommand(), character_commandscript::HandleCharacterLevelCommand(), character_commandscript::HandleCharacterReputationCommand(), character_commandscript::HandleCharacterTitlesCommand(), group_commandscript::HandleGroupLevelCommand(), guild_commandscript::HandleGuildInfoCommand(), guild_commandscript::HandleGuildRankCommand(), learn_commandscript::HandleLearnAllCraftsCommand(), learn_commandscript::HandleLearnAllDefaultCommand(), character_commandscript::HandleLevelUpCommand(), lfg_commandscript::HandleLfgGroupInfoCommand(), lfg_commandscript::HandleLfgPlayerInfoCommand(), list_commandscript::HandleListMailCommand(), misc_commandscript::HandlePInfoCommand(), and tele_commandscript::HandleTeleNameCommand().
|
inline |
Definition at line 173 of file ChatCommandTags.h.
Referenced by tele_commandscript::DoNameTeleport(), misc_commandscript::HandleAddItemToCommand(), character_commandscript::HandleCharacterEraseCommand(), group_commandscript::HandleGroupListCommand(), and send_commandscript::HandleSendMoneyCommand().
|
inline |
Definition at line 171 of file ChatCommandTags.h.
Referenced by tele_commandscript::DoNameTeleport(), character_commandscript::HandleCharacterEraseCommand(), group_commandscript::HandleGroupListCommand(), character_commandscript::HandlePDumpCopyCommand(), character_commandscript::HandlePDumpWriteCommand(), and send_commandscript::HandleSendMoneyCommand().
|
inline |
Definition at line 170 of file ChatCommandTags.h.
Referenced by tele_commandscript::DoNameTeleport(), character_commandscript::HandleCharacterEraseCommand(), group_commandscript::HandleGroupListCommand(), and send_commandscript::HandleSendMoneyCommand().
|
inline |
Definition at line 172 of file ChatCommandTags.h.
Referenced by misc_commandscript::HandleAddItemToCommand(), and group_commandscript::HandleGroupListCommand().
|
inline |
Definition at line 166 of file ChatCommandTags.h.
|
inline |
Definition at line 167 of file ChatCommandTags.h.
|
inline |
Definition at line 168 of file ChatCommandTags.h.
| ChatCommandResult Trinity::ChatCommands::PlayerIdentifier::TryConsume | ( | ChatHandler const * | handler, |
| std::string_view | args | ||
| ) |
Definition at line 125 of file ChatCommandTags.cpp.
References ObjectAccessor::FindPlayerByLowGUID(), ObjectAccessor::FindPlayerByName(), Trinity::Impl::ChatCommands::FormatTrinityString(), Trinity::ChatCommands::Variant< T1, Ts >::get(), Trinity::ChatCommands::Variant< T1, Ts >::holds_alternative(), LANG_CMDPARSER_CHAR_GUID_NO_EXIST, LANG_CMDPARSER_CHAR_NAME_INVALID, LANG_CMDPARSER_CHAR_NAME_NO_EXIST, normalizePlayerName(), sCharacterCache, and STRING_VIEW_FMT_ARG.
|
private |
Definition at line 189 of file ChatCommandTags.h.
|
private |
Definition at line 188 of file ChatCommandTags.h.
|
private |
Definition at line 190 of file ChatCommandTags.h.