#include <CSWPyCommands.h>
Public Member Functions | |
virtual void | initialize ()=0 |
virtual void | step ()=0 |
virtual void | cleanup ()=0 |
virtual std::string | getDetails () const |
void | setProgress (double fProgress) |
void | finished () |
![]() | |
virtual PtrType | copy () const =0 |
virtual std::string | getName () const =0 |
virtual bool | wasExecuted () const |
virtual double | getProgress () const |
The base class of Commands that are defined in python.
|
pure virtual |
This is called directly after finishing of execution or on breaking.
Implements ARSTD::Command.
void CodeSubWars::CSWPyCommand::finished | ( | ) |
This indicates the execution environment that the command is done.
|
virtual |
Returns some interesting stuff about the current command state.
Reimplemented from ARSTD::Command.
|
pure virtual |
This is called directly before execution (before the first step() is called).
Implements ARSTD::Command.
void CodeSubWars::CSWPyCommand::setProgress | ( | double | fProgress | ) |
Sets the progress of command execution.
fProgress | The new progress of the execution in range [0, 1]. |
|
pure virtual |
This is called periodically about every 10ms while executing. If the command is done finished() must be called. If finished() is never called the command never stops executing.
Implements ARSTD::Command.