TrinityCore
send_commandscript Class Reference
+ Inheritance diagram for send_commandscript:

Public Member Functions

 send_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 HandleSendMailCommand (ChatHandler *handler, char const *args)
 
static bool HandleSendItemsCommand (ChatHandler *handler, char const *args)
 
static bool HandleSendMoneyCommand (ChatHandler *handler, PlayerIdentifier const &receiver, QuotedString const &subject, QuotedString const &text, int64 money)
 Send money by mail. More...
 
static bool HandleSendMessageCommand (ChatHandler *handler, char const *args)
 Send a message to a player in game. More...
 

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 36 of file cs_send.cpp.

Constructor & Destructor Documentation

◆ send_commandscript()

send_commandscript::send_commandscript ( )
inline

Definition at line 39 of file cs_send.cpp.

Member Function Documentation

◆ GetCommands()

ChatCommandTable send_commandscript::GetCommands ( ) const
inlineoverridevirtual

Implements CommandScript.

Definition at line 41 of file cs_send.cpp.

+ Here is the call graph for this function:

◆ HandleSendItemsCommand()

static bool send_commandscript::HandleSendItemsCommand ( ChatHandler handler,
char const *  args 
)
inlinestatic

Definition at line 104 of file cs_send.cpp.

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

◆ HandleSendMailCommand()

static bool send_commandscript::HandleSendMailCommand ( ChatHandler handler,
char const *  args 
)
inlinestatic
Todo:
Fix poor design

Definition at line 59 of file cs_send.cpp.

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

◆ HandleSendMessageCommand()

static bool send_commandscript::HandleSendMessageCommand ( ChatHandler handler,
char const *  args 
)
inlinestatic

Send a message to a player in game.

  • Find the player
  • Check if player is logging out.
  • Send the message

Definition at line 232 of file cs_send.cpp.

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

◆ HandleSendMoneyCommand()

static bool send_commandscript::HandleSendMoneyCommand ( ChatHandler handler,
PlayerIdentifier const &  receiver,
QuotedString const &  subject,
QuotedString const &  text,
int64  money 
)
inlinestatic

Send money by mail.

format: name "subject text" "mail text" money

Definition at line 212 of file cs_send.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: