#include <Command.h>
Public Member Functions | |
virtual PtrType | copy () const =0 |
virtual std::string | getName () const =0 |
virtual bool | wasExecuted () const |
virtual double | getProgress () const |
The base class of all Commands that can be executed by the CommandProcessor.
|
pure virtual |
Returns a copy of the command.
Implemented in ARSTD::RepeatCommand, ARSTD::PushCommand, ARSTD::PopCommand, ARSTD::CleanupHistoryCommand, ARSTD::MacroCommand, CodeSubWars::CSWSetEngineIntensityCommand, CodeSubWars::CSWSetEngineDirectionCommand, CodeSubWars::CSWSendEventCommand, CodeSubWars::CSWFireCommand, CodeSubWars::CSWRechargeWeaponBatteryCommand, and CodeSubWars::CSWWaitCommand.
|
pure virtual |
Returns the name of the command.
Implemented in ARSTD::RepeatCommand, ARSTD::PushCommand, ARSTD::PopCommand, ARSTD::CleanupHistoryCommand, ARSTD::MacroCommand, CodeSubWars::CSWExecuteCommand, and CodeSubWars::CSWWaitCommand.
|
virtual |
Returns the progress of command execution.
Reimplemented in ARSTD::MacroCommand.
|
virtual |
Returns whether the command was already executed.
Reimplemented in ARSTD::MacroCommand.