RepeatCommand
-
class RepeatCommand : public Command
Makes a Command repeat each time after it is run.
Public Functions
-
inline explicit RepeatCommand(Command *command)
Create a RepeatCommand with a Command pointer.
- Parameters:
command – The Command to make into a RepeatCommand
-
inline virtual void execute() override
Executes the Command, if it is finished it restarts the Command.
-
inline explicit RepeatCommand(Command *command)