#include <CommandPlayStateOutputs.h>
Public Member Functions | |
| CommandPlayStateOutputs (ptr< CscEntityReflexion > entityReflexion, CscState *stateToPlay, float stateDuration=200, float stateDelay=200, bool relativeValues=false) | |
| ~CommandPlayStateOutputs () override | |
| CscState * | getStateToPlay () |
| float | getStateDuration () |
| float | getStateDelay () |
| bool | isRelativeValues () |
Public Member Functions inherited from conscience_core::bridging::commands::CscCommand | |
| const CscCommandExecutionResult * | _execute (CscEnvironmentSimulator &environmentSimulator) |
| template<class TResult = CscCommandExecutionResult> | |
| const TResult * | execute (CscEnvironmentSimulator &environmentSimulator) |
| const CommandTypeId & | getTypeId () const |
| virtual | ~CscCommand () |
| void | setOriginalCommandString (string command) |
Static Public Member Functions | |
| static CommandPlayStateOutputs * | forWheelsSpeedPercent (const ptr< CscEntityReflexion > &entityReflexion, double speedLeftPercent, double speedRightPercent, float stateDuration=200, float stateDelay=200) |
Static Public Member Functions inherited from conscience_core::bridging::commands::CscCommand | |
| static void | addCommandExecutedListener (CommandExecutedListener listener) |
Static Public Attributes | |
| static const CommandTypeId | COMMAND_ID = "PLAY_STATE_OUTPUTS" |
Protected Member Functions | |
| const CscCommandExecutionResultNone * | doExecute (CscEnvironmentSimulator &environmentSimulator) override |
| ptr< CscEntityReflexion > | getEntityReflexion () const override |
Protected Member Functions inherited from conscience_core::bridging::commands::CscCommand | |
| CscCommand (const CommandTypeId &typeId) | |
| const CscCommandExecutionResultNone * | resultNone () |
| const CscCommandExecutionResultSequence * | resultSequence (CscSequence *sequence, const string &entitySerialNumber, bool doNotPlay=false) |
| const CscCommandExecutionResultFile * | resultFile (const fs::path &resultingFilePath) |
| template<class TResult > | |
| const CscCommandExecutionResultObject< TResult > * | resultObject (TResult *result) |
| const CscWorldElementId | getEntityId () const |
Additional Inherited Members | |
Public Types inherited from conscience_core::bridging::commands::CscCommand | |
| typedef function< void(CscCommand *command)> | CommandExecutedListener |
Protected Attributes inherited from conscience_core::bridging::commands::CscCommand | |
| const CommandTypeId | typeId |
| optional< string > | originalCommandString = {} |
| conscience_core::bridging::commands::CommandPlayStateOutputs::CommandPlayStateOutputs | ( | ptr< CscEntityReflexion > | entityReflexion, |
| CscState * | stateToPlay, | ||
| float | stateDuration = 200, |
||
| float | stateDelay = 200, |
||
| bool | relativeValues = false |
||
| ) |
|
override |
|
overrideprotectedvirtual |
Implements conscience_core::bridging::commands::CscCommand.
|
static |
|
overrideprotectedvirtual |
return entity reflexion if this command applies on an entityReflexion, otherwise return nullptr
Implements conscience_core::bridging::commands::CscCommand.
| float conscience_core::bridging::commands::CommandPlayStateOutputs::getStateDelay | ( | ) |
| float conscience_core::bridging::commands::CommandPlayStateOutputs::getStateDuration | ( | ) |
| CscState * conscience_core::bridging::commands::CommandPlayStateOutputs::getStateToPlay | ( | ) |
| bool conscience_core::bridging::commands::CommandPlayStateOutputs::isRelativeValues | ( | ) |
|
inlinestatic |