|
Wrath of Zeus
Made by Torchlight Games for CSE 125 SP24
|
This is the Command class from which all debugger commands derive. Each debugger command has a name and a shorthand name. The run() method is overloaded by each particular command to implement its particular behavior. More...
#include <debugger.hpp>
Public Member Functions | |
| virtual void | run (std::vector< std::string > arguments, ServerGameState &state)=0 |
| The Command's run() method is overloaded by each particular command to implement its particular behavior. More... | |
Data Fields | |
| std::string | name |
| The Command's name. When the user enters an input string, the first word is treated as the intended command name, and if the debugger finds a command with a matching name, it will attempt to run it. More... | |
| std::string | shorthand |
| Alternative shorthand name that also refers to this command. More... | |
This is the Command class from which all debugger commands derive. Each debugger command has a name and a shorthand name. The run() method is overloaded by each particular command to implement its particular behavior.
|
pure virtual |
The Command's run() method is overloaded by each particular command to implement its particular behavior.
| arguments | Vector of string arguments from user |
| state | Reference to the ServerGameState instance maintained by the debugger. |
Implemented in QuitCommand, StepCommand, StateCommand, PrintCommand, HelpCommand, CreateCommand, DeleteCommand, and SetCommand.
| std::string Command::name |
The Command's name. When the user enters an input string, the first word is treated as the intended command name, and if the debugger finds a command with a matching name, it will attempt to run it.
| std::string Command::shorthand |
Alternative shorthand name that also refers to this command.