AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "ChatCommandTags.h"
Public Types | |
using | value_type = Player * |
Public Types inherited from Acore::Impl::ChatCommands::ContainerTag | |
using | ChatCommandResult = Acore::Impl::ChatCommands::ChatCommandResult |
Public Member Functions | |
PlayerIdentifier () | |
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 |
|
inline |
Acore::ChatCommands::PlayerIdentifier::PlayerIdentifier | ( | Player & | player | ) |
|
static |
References ChatHandler::GetPlayer().
Referenced by instance_commandscript::HandleInstanceGetBossStateCommand(), and instance_commandscript::HandleInstanceSetBossStateCommand().
|
static |
References ChatHandler::GetPlayer(), and Player::GetSelectedPlayer().
Referenced by reset_commandscript::GetPlayerFromIdentifierOrSelectedTarget(), achievement_commandscript::HandleAchievementCheckAllCommand(), misc_commandscript::HandleAppearCommand(), character_commandscript::HandleCharacterChangeFactionCommand(), character_commandscript::HandleCharacterChangeRaceCommand(), character_commandscript::HandleCharacterCustomizeCommand(), character_commandscript::HandleCharacterRenameCommand(), misc_commandscript::HandleMuteCommand(), and misc_commandscript::HandleSummonCommand().
|
inlinestatic |
Referenced by misc_commandscript::HandleAddItemCommand(), arena_commandscript::HandleArenaCaptainCommand(), arena_commandscript::HandleArenaCreateCommand(), cache_commandscript::HandleCacheDeleteCommand(), cache_commandscript::HandleCacheInfoCommand(), cache_commandscript::HandleCacheRefreshCommand(), character_commandscript::HandleCharacterChangeAccountCommand(), character_commandscript::HandleCharacterLevelCommand(), character_commandscript::HandleCharacterReputationCommand(), character_commandscript::HandleCharacterTitlesCommand(), misc_commandscript::HandleCombatStopCommand(), deserter_commandscript::HandleDeserterRemove(), misc_commandscript::HandleFreezeCommand(), gear_commandscript::HandleGearRepairCommand(), misc_commandscript::HandleGetDistanceCommand(), misc_commandscript::HandleGPSCommand(), group_commandscript::HandleGroupDisbandCommand(), group_commandscript::HandleGroupLeaderCommand(), group_commandscript::HandleGroupListCommand(), group_commandscript::HandleGroupRemoveCommand(), misc_commandscript::HandleGroupSummonCommand(), guild_commandscript::HandleGuildCreateCommand(), guild_commandscript::HandleGuildInfoCommand(), guild_commandscript::HandleGuildInviteCommand(), guild_commandscript::HandleGuildRankCommand(), guild_commandscript::HandleGuildUninviteCommand(), inventory_commandscript::HandleInventoryCountCommand(), misc_commandscript::HandleKickPlayerCommand(), learn_commandscript::HandleLearnAllDefaultCommand(), character_commandscript::HandleLevelUpCommand(), lfg_commandscript::HandleLfgGroupInfoCommand(), lfg_commandscript::HandleLfgPlayerInfoCommand(), misc_commandscript::HandlePInfoCommand(), player_commandscript::HandlePlayerLearnCommand(), player_commandscript::HandlePlayerUnLearnCommand(), quest_commandscript::HandleQuestAdd(), quest_commandscript::HandleQuestComplete(), quest_commandscript::HandleQuestRemove(), quest_commandscript::HandleQuestReward(), misc_commandscript::HandleRecallCommand(), reset_commandscript::HandleResetSpellsCommand(), misc_commandscript::HandleReviveCommand(), send_commandscript::HandleSendItemsCommand(), send_commandscript::HandleSendMailCommand(), send_commandscript::HandleSendMessageCommand(), send_commandscript::HandleSendMoneyCommand(), tele_commandscript::HandleTeleNameCommand(), misc_commandscript::HandleUnFreezeCommand(), misc_commandscript::HandleUnmuteCommand(), and misc_commandscript::HandleUnstuckCommand().
|
inline |
|
inline |
Referenced by tele_commandscript::DoNameTeleport(), character_commandscript::HandleCharacterEraseCommand(), item_commandscript::HandleItemRefundCommand(), item_commandscript::HandleItemRestoreCommand(), item_commandscript::HandleItemRestoreListCommand(), character_commandscript::HandlePDumpCopyCommand(), and character_commandscript::HandlePDumpWriteCommand().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
ChatCommandResult Acore::ChatCommands::PlayerIdentifier::TryConsume | ( | ChatHandler const * | handler, |
std::string_view | args | ||
) |
References ObjectAccessor::FindPlayerByLowGUID(), ObjectAccessor::FindPlayerByName(), Acore::Impl::ChatCommands::FormatAcoreString(), Acore::ChatCommands::Variant< T1, Ts >::get(), Acore::ChatCommands::Variant< T1, Ts >::holds_alternative(), LANG_CMDPARSER_CHAR_GUID_NO_EXIST, LANG_CMDPARSER_CHAR_NAME_INVALID, LANG_CMDPARSER_CHAR_NAME_NO_EXIST, normalizePlayerName(), and sCharacterCache.
|
private |
|
private |
|
private |