![]() |
VR-Forces 4.0.4 Class Documentation
|
Abstract base class for all simCommand executors. More...

Public Member Functions | |
| DtSimCommandExecutor (DtSimManager *simManager) | |
| virtual | ~DtSimCommandExecutor () |
| virtual bool | execute (const DtSimCommand *command)=0 |
| Perform the actual execution of the DtSimCommand. | |
| virtual bool | execute (const DtSimCommand *command, const DtString &objectName) |
| Performs the actual executor of the DtSimCommand in the context of a specific entity. | |
Static Public Member Functions | |
| static void | setFactory (DtSimCommandExecutorFactory *factory) |
| Sets the static factory member. | |
| static DtSimCommandExecutor * | createSimCommandExecutor (int type, DtSimManager *simManager) |
| Uses the static factory member to create a new executor of the specified type. | |
Protected Attributes | |
| DtSimManager * | mySimManager |
Static Protected Attributes | |
| static DtSimCommandExecutorFactory * | myFactory |
Private Member Functions | |
| DtSimCommandExecutor () | |
| Not implemented. | |
| DtSimCommandExecutor (const DtSimCommandExecutor &orig) | |
| Not implemented. | |
| DtSimCommandExecutor & | operator= (const DtSimCommandExecutor &orig) |
| Not implemented. | |
Abstract base class for all simCommand executors.
Every DtSimCommand should have a corresponding DtSimCommandExecutor subclass that implements the execution of that command.
| DtSimCommandExecutor::DtSimCommandExecutor | ( | DtSimManager * | simManager | ) |
| virtual DtSimCommandExecutor::~DtSimCommandExecutor | ( | ) | [virtual] |
| DtSimCommandExecutor::DtSimCommandExecutor | ( | ) | [private] |
Not implemented.
| DtSimCommandExecutor::DtSimCommandExecutor | ( | const DtSimCommandExecutor & | orig | ) | [private] |
Not implemented.
| virtual bool DtSimCommandExecutor::execute | ( | const DtSimCommand * | command | ) | [pure virtual] |
Perform the actual execution of the DtSimCommand.
Pure virtual function; must be overloaded by derived classes. This method executes the command in the global context. If the command should be executed differently when in the context of a specific entity (i.e. in that entity's plan), see execute() which takes an object name.
Implemented in DtStealthDetachCommandExecutor, DtStealthGroupCommandExecutor, DtStealthMimicCommandExecutor, DtDeleteObjectCommandExecutor, DtConsoleMessageCommandExecutor, DtCreateObjectCommandExecutor, DtAbandonPlanCommandExecutor, DtNoopCommandExecutor, DtRestartPlanCommandExecutor, DtChangeGlobalWeatherCommandExecutor, DtChangeHostilityCommandExecutor, DtChangeTimeOfDayCommandExecutor, DtSetDataCommandExecutor, DtTaskCommandExecutor, DtIssuePlanCommandExecutor, DtStealthCompassCommandExecutor, and MySimCommandExecutor.
| virtual bool DtSimCommandExecutor::execute | ( | const DtSimCommand * | command, |
| const DtString & | objectName | ||
| ) | [virtual] |
Performs the actual executor of the DtSimCommand in the context of a specific entity.
The default implementation of this is to call execute(command), and simply throw out the objectName. This method should be reimplemented by deriving classes if the command is executed differently when in in the context of an object.
Reimplemented in DtConsoleMessageCommandExecutor, DtSetDataCommandExecutor, DtTaskCommandExecutor, DtDeleteObjectCommandExecutor, and MySimCommandExecutor.
| static void DtSimCommandExecutor::setFactory | ( | DtSimCommandExecutorFactory * | factory | ) | [static] |
Sets the static factory member.
| static DtSimCommandExecutor* DtSimCommandExecutor::createSimCommandExecutor | ( | int | type, |
| DtSimManager * | simManager | ||
| ) | [static] |
Uses the static factory member to create a new executor of the specified type.
| DtSimCommandExecutor& DtSimCommandExecutor::operator= | ( | const DtSimCommandExecutor & | orig | ) | [private] |
Not implemented.
DtSimManager* DtSimCommandExecutor::mySimManager [protected] |
DtSimCommandExecutorFactory* DtSimCommandExecutor::myFactory [static, protected] |