TrinityCore
Trinity::ChatCommands::PlayerIdentifier Struct Reference

#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 ()
 
 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
 
PlayerGetConnectedPlayer () const
 
ChatCommandResult TryConsume (ChatHandler const *handler, std::string_view args)
 

Static Public Member Functions

static Optional< PlayerIdentifierFromTarget (ChatHandler *handler)
 
static Optional< PlayerIdentifierFromSelf (ChatHandler *handler)
 
static Optional< PlayerIdentifierFromTargetOrSelf (ChatHandler *handler)
 

Private Attributes

std::string _name
 
ObjectGuid _guid
 
Player_player
 

Detailed Description

Definition at line 175 of file ChatCommandTags.h.

Member Typedef Documentation

◆ value_type

Constructor & Destructor Documentation

◆ PlayerIdentifier() [1/2]

Trinity::ChatCommands::PlayerIdentifier::PlayerIdentifier ( )
inline

Definition at line 179 of file ChatCommandTags.h.

◆ PlayerIdentifier() [2/2]

Trinity::ChatCommands::PlayerIdentifier::PlayerIdentifier ( Player player)

Definition at line 138 of file ChatCommandTags.cpp.

Member Function Documentation

◆ FromSelf()

Optional< Trinity::ChatCommands::PlayerIdentifier > Trinity::ChatCommands::PlayerIdentifier::FromSelf ( ChatHandler handler)
static

Definition at line 150 of file ChatCommandTags.cpp.

+ Here is the call graph for this function:

◆ FromTarget()

Optional< Trinity::ChatCommands::PlayerIdentifier > Trinity::ChatCommands::PlayerIdentifier::FromTarget ( ChatHandler handler)
static

Definition at line 141 of file ChatCommandTags.cpp.

+ Here is the call graph for this function:

◆ FromTargetOrSelf()

static Optional< PlayerIdentifier > Trinity::ChatCommands::PlayerIdentifier::FromTargetOrSelf ( ChatHandler handler)
inlinestatic

Definition at line 195 of file ChatCommandTags.h.

◆ GetConnectedPlayer()

Player * Trinity::ChatCommands::PlayerIdentifier::GetConnectedPlayer ( ) const
inline

Definition at line 189 of file ChatCommandTags.h.

+ Here is the caller graph for this function:

◆ GetGUID()

ObjectGuid Trinity::ChatCommands::PlayerIdentifier::GetGUID ( ) const
inline

Definition at line 187 of file ChatCommandTags.h.

+ Here is the caller graph for this function:

◆ GetName()

std::string const & Trinity::ChatCommands::PlayerIdentifier::GetName ( ) const
inline

Definition at line 186 of file ChatCommandTags.h.

+ Here is the caller graph for this function:

◆ IsConnected()

bool Trinity::ChatCommands::PlayerIdentifier::IsConnected ( ) const
inline

Definition at line 188 of file ChatCommandTags.h.

+ Here is the caller graph for this function:

◆ operator ObjectGuid()

Trinity::ChatCommands::PlayerIdentifier::operator ObjectGuid ( ) const
inline

Definition at line 182 of file ChatCommandTags.h.

◆ operator std::string const &()

Trinity::ChatCommands::PlayerIdentifier::operator std::string const & ( ) const
inline

Definition at line 183 of file ChatCommandTags.h.

◆ operator std::string_view()

Trinity::ChatCommands::PlayerIdentifier::operator std::string_view ( ) const
inline

Definition at line 184 of file ChatCommandTags.h.

◆ TryConsume()

ChatCommandResult Trinity::ChatCommands::PlayerIdentifier::TryConsume ( ChatHandler const *  handler,
std::string_view  args 
)

Definition at line 104 of file ChatCommandTags.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _guid

ObjectGuid Trinity::ChatCommands::PlayerIdentifier::_guid
private

Definition at line 205 of file ChatCommandTags.h.

◆ _name

std::string Trinity::ChatCommands::PlayerIdentifier::_name
private

Definition at line 204 of file ChatCommandTags.h.

◆ _player

Player* Trinity::ChatCommands::PlayerIdentifier::_player
private

Definition at line 206 of file ChatCommandTags.h.


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