TrinityCore
pet_commandscript Class Reference
+ Inheritance diagram for pet_commandscript:

Public Member Functions

 pet_commandscript ()
 
ChatCommandTable GetCommands () const override
 
- Public Member Functions inherited from CommandScript
 ~CommandScript ()
 
virtual std::vector< Trinity::ChatCommands::ChatCommandBuilderGetCommands () const =0
 
- Public Member Functions inherited from ScriptObject
 ScriptObject (ScriptObject const &right)=delete
 
 ScriptObject (ScriptObject &&right)=delete
 
ScriptObjectoperator= (ScriptObject const &right)=delete
 
ScriptObjectoperator= (ScriptObject &&right)=delete
 
std::string const & GetName () const
 

Static Public Member Functions

static bool HandlePetCreateCommand (ChatHandler *handler)
 
static bool HandlePetLearnCommand (ChatHandler *handler, SpellInfo const *spellInfo)
 
static bool HandlePetUnlearnCommand (ChatHandler *handler, SpellInfo const *spellInfo)
 
static bool HandlePetLevelCommand (ChatHandler *handler, Optional< int32 > level)
 

Additional Inherited Members

- Protected Member Functions inherited from CommandScript
 CommandScript (char const *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (char const *name)
 
virtual ~ScriptObject ()
 

Detailed Description

Definition at line 46 of file cs_pet.cpp.

Constructor & Destructor Documentation

◆ pet_commandscript()

pet_commandscript::pet_commandscript ( )
inline

Definition at line 49 of file cs_pet.cpp.

Member Function Documentation

◆ GetCommands()

ChatCommandTable pet_commandscript::GetCommands ( ) const
inlineoverridevirtual

Implements CommandScript.

Definition at line 51 of file cs_pet.cpp.

+ Here is the call graph for this function:

◆ HandlePetCreateCommand()

static bool pet_commandscript::HandlePetCreateCommand ( ChatHandler handler)
inlinestatic

Definition at line 67 of file cs_pet.cpp.

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

◆ HandlePetLearnCommand()

static bool pet_commandscript::HandlePetLearnCommand ( ChatHandler handler,
SpellInfo const *  spellInfo 
)
inlinestatic

Definition at line 119 of file cs_pet.cpp.

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

◆ HandlePetLevelCommand()

static bool pet_commandscript::HandlePetLevelCommand ( ChatHandler handler,
Optional< int32 level 
)
inlinestatic

Definition at line 174 of file cs_pet.cpp.

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

◆ HandlePetUnlearnCommand()

static bool pet_commandscript::HandlePetUnlearnCommand ( ChatHandler handler,
SpellInfo const *  spellInfo 
)
inlinestatic

Definition at line 154 of file cs_pet.cpp.

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

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