TrinityCore
wp_commandscript Class Reference
+ Inheritance diagram for wp_commandscript:

Public Member Functions

 wp_commandscript ()
 
std::vector< ChatCommandGetCommands () 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 HandleWpAddCommand (ChatHandler *handler, char const *args)
 
static bool HandleWpLoadCommand (ChatHandler *handler, char const *args)
 
static bool HandleWpReloadCommand (ChatHandler *handler, char const *args)
 
static bool HandleWpUnLoadCommand (ChatHandler *handler, char const *)
 
static bool HandleWpModifyCommand (ChatHandler *handler, char const *args)
 
static bool HandleWpShowCommand (ChatHandler *handler, char const *args)
 

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 44 of file cs_wp.cpp.

Constructor & Destructor Documentation

◆ wp_commandscript()

wp_commandscript::wp_commandscript ( )
inline

Definition at line 47 of file cs_wp.cpp.

Member Function Documentation

◆ GetCommands()

std::vector< ChatCommand > wp_commandscript::GetCommands ( ) const
inlineoverridevirtual

Implements CommandScript.

Definition at line 49 of file cs_wp.cpp.

+ Here is the call graph for this function:

◆ HandleWpAddCommand()

static bool wp_commandscript::HandleWpAddCommand ( ChatHandler handler,
char const *  args 
)
inlinestatic

Add a waypoint to a creature.

The user can either select an npc or provide its GUID.

The user can even select a visual waypoint - then the new waypoint is placed after the selected one - this makes insertion of new waypoints possible.

eg: .wp add 12345 -> adds a waypoint to the npc with the GUID 12345

.wp add -> adds a waypoint to the currently selected creature

Parameters
argsif the user did not provide a GUID, it is NULL
Returns
true - command did succeed, false - something went wrong

Definition at line 87 of file cs_wp.cpp.

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

◆ HandleWpLoadCommand()

static bool wp_commandscript::HandleWpLoadCommand ( ChatHandler handler,
char const *  args 
)
inlinestatic

Definition at line 162 of file cs_wp.cpp.

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

◆ HandleWpModifyCommand()

static bool wp_commandscript::HandleWpModifyCommand ( ChatHandler handler,
char const *  args 
)
inlinestatic

Definition at line 300 of file cs_wp.cpp.

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

◆ HandleWpReloadCommand()

static bool wp_commandscript::HandleWpReloadCommand ( ChatHandler handler,
char const *  args 
)
inlinestatic

Definition at line 241 of file cs_wp.cpp.

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

◆ HandleWpShowCommand()

static bool wp_commandscript::HandleWpShowCommand ( ChatHandler handler,
char const *  args 
)
inlinestatic

Definition at line 373 of file cs_wp.cpp.

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

◆ HandleWpUnLoadCommand()

static bool wp_commandscript::HandleWpUnLoadCommand ( ChatHandler handler,
char const *   
)
inlinestatic

Definition at line 256 of file cs_wp.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: