|
R-Type
Distributed multiplayer game engine in C++
|
Interface for all chat commands. More...
#include <ICommand.hpp>


Public Member Functions | |
| virtual | ~ICommand ()=default |
| virtual std::string | execute (const std::vector< std::string > &args, const CommandContext &context)=0 |
| Execute the command. | |
| virtual std::string | getName () const =0 |
| Get command name. | |
| virtual std::string | getDescription () const =0 |
| Get command description. | |
| virtual std::string | getUsage () const =0 |
| Get command usage. | |
Interface for all chat commands.
Defines the contract for all command implementations. Each command must be able to execute with given arguments and context.
Definition at line 23 of file ICommand.hpp.
|
virtualdefault |
|
pure virtual |
Execute the command.
| args | Command arguments (without the command name) |
| context | Execution context with player and room information |
Implemented in server::HelpCommand, server::KickCommand, and server::ListCommand.
|
pure virtual |
Get command description.
Implemented in server::HelpCommand, server::KickCommand, and server::ListCommand.
|
pure virtual |
Get command name.
Implemented in server::HelpCommand, server::KickCommand, and server::ListCommand.
|
pure virtual |
Get command usage.
Implemented in server::HelpCommand, server::KickCommand, and server::ListCommand.