Represents the Move Up command.
More...
#include <Null_Object.h>
|
| MoveCommandUp (std::string command) |
| Constructor.
|
|
void | Execute () override |
| Executes the move up command.
|
|
Public Member Functions inherited from MoveCommand |
virtual | ~MoveCommand () |
| Virtual destructor required for interfaces/base classes.
|
|
std::string | Name () |
| Name of the command (assigned in the class constructor).
|
|
std::string | Command () |
| The command character from the original list of commands. Used when displaying the commands as opposed to when executing the commands (assigned in the class constructor).
|
|
| MoveCommand (std::string command, std::string commandName) |
| Constructor.
|
|
virtual void | Show () |
| Display the move command and its name followed by a newline.
|
|
virtual void | Execute ()=0 |
| Execute the command. Derived classes must implement this.
|
|
Represents the Move Up command.
Definition at line 173 of file Null_Object.h.
◆ MoveCommandUp()
Constructor.
- Parameters
-
command | The character representing the move in the original move list. |
Definition at line 181 of file Null_Object.h.
◆ Execute()
The documentation for this class was generated from the following file: