TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ChatCommand Class Reference

#include <Chat.h>

Public Member Functions

 ChatCommand (char const *name, uint32 permission, bool allowConsole, pHandler handler, std::string help, std::vector< ChatCommand > childCommands=std::vector< ChatCommand >())
 

Public Attributes

char constName
 
uint32 Permission
 
bool AllowConsole
 
pHandler Handler
 
std::string Help
 
std::vector< ChatCommandChildCommands
 

Private Types

typedef bool(* pHandler )(ChatHandler *, char const *)
 

Member Typedef Documentation

typedef bool(* ChatCommand::pHandler)(ChatHandler *, char const *)
private

Constructor & Destructor Documentation

ChatCommand::ChatCommand ( char const name,
uint32  permission,
bool  allowConsole,
pHandler  handler,
std::string  help,
std::vector< ChatCommand childCommands = std::vector<ChatCommand>() 
)
inline
46  : Name(ASSERT_NOTNULL(name)), Permission(permission), AllowConsole(allowConsole), Handler(handler), Help(std::move(help)), ChildCommands(std::move(childCommands)) { }
T * ASSERT_NOTNULL(T *pointer)
Definition: Errors.h:58
std::string Help
Definition: Chat.h:52
uint32 Permission
Definition: Chat.h:49
char const * Name
Definition: Chat.h:48
std::vector< ChatCommand > ChildCommands
Definition: Chat.h:53
pHandler Handler
Definition: Chat.h:51
bool AllowConsole
Definition: Chat.h:50

Member Data Documentation

bool ChatCommand::AllowConsole
std::vector<ChatCommand> ChatCommand::ChildCommands
pHandler ChatCommand::Handler
std::string ChatCommand::Help
char const* ChatCommand::Name
uint32 ChatCommand::Permission

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