Sly Engine
|
#include <ConsoleCommand.h>
Public Member Functions | |
ConsoleCommand ()=default | |
Default Constructor. More... | |
ConsoleCommand (const ConsoleCommand &)=delete | |
Copy Constructor. More... | |
ConsoleCommand (ConsoleCommand &&)=delete | |
Move operator. More... | |
ConsoleCommand & | operator= (const ConsoleCommand &)=delete |
Copy assignment operator. More... | |
ConsoleCommand & | operator= (ConsoleCommand &&)=delete |
Move assignment operator. More... | |
virtual | ~ConsoleCommand ()=default |
Destructor (Virtual from CommandBase) More... | |
virtual void | execute ()=0 |
The base command required to be implemented by all console commands. The resulting trigger mechanism that actually fires *this action. More... | |
virtual void | initialize (std::vector< std::string > arguments) |
Initializer list of arguments. More... | |
Public Member Functions inherited from CommandBase | |
CommandBase ()=default | |
Default constructor. More... | |
CommandBase (const CommandBase &)=delete | |
Copy constructor. More... | |
CommandBase (CommandBase &&)=delete | |
Move constructor. More... | |
CommandBase & | operator= (const CommandBase &)=delete |
Assignment operator. More... | |
CommandBase & | operator= (CommandBase &&)=delete |
Move assignment operator. More... | |
virtual | ~CommandBase ()=default |
Deconstructor. More... | |
|
default |
Default Constructor.
|
delete |
Copy Constructor.
|
delete |
Move operator.
|
virtualdefault |
Destructor (Virtual from CommandBase)
|
pure virtual |
The base command required to be implemented by all console commands. The resulting trigger mechanism that actually fires *this action.
Implements CommandBase.
Implemented in KillCommand, GodCamCommand, PingCommand, TimeRequestCommand, and ReloadCommand.
|
inlinevirtual |
Initializer list of arguments.
arguments | The arguments. |
A command should override the initialize function iff it expects arguments. The arguments will come in the form of a vector of strings. The user is in charge of parsing the resulting string vector and handling input.
|
delete |
Move assignment operator.
|
delete |
Copy assignment operator.