Conscience Core
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
conscience_core::bridging::commands::CommandPlayStateOutputs Class Reference

#include <CommandPlayStateOutputs.h>

Inheritance diagram for conscience_core::bridging::commands::CommandPlayStateOutputs:
conscience_core::bridging::commands::CscCommand

Public Member Functions

 CommandPlayStateOutputs (ptr< CscEntityReflexion > entityReflexion, CscState *stateToPlay, float stateDuration=200, float stateDelay=200, bool relativeValues=false)
 
 ~CommandPlayStateOutputs () override
 
CscStategetStateToPlay ()
 
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 CommandTypeIdgetTypeId () const
 
virtual ~CscCommand ()
 
void setOriginalCommandString (string command)
 

Static Public Member Functions

static CommandPlayStateOutputsforWheelsSpeedPercent (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 CscCommandExecutionResultNonedoExecute (CscEnvironmentSimulator &environmentSimulator) override
 
ptr< CscEntityReflexiongetEntityReflexion () const override
 
- Protected Member Functions inherited from conscience_core::bridging::commands::CscCommand
 CscCommand (const CommandTypeId &typeId)
 
const CscCommandExecutionResultNoneresultNone ()
 
const CscCommandExecutionResultSequenceresultSequence (CscSequence *sequence, const string &entitySerialNumber, bool doNotPlay=false)
 
const CscCommandExecutionResultFileresultFile (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 = {}
 

Constructor & Destructor Documentation

◆ CommandPlayStateOutputs()

conscience_core::bridging::commands::CommandPlayStateOutputs::CommandPlayStateOutputs ( ptr< CscEntityReflexion entityReflexion,
CscState stateToPlay,
float  stateDuration = 200,
float  stateDelay = 200,
bool  relativeValues = false 
)

◆ ~CommandPlayStateOutputs()

conscience_core::bridging::commands::CommandPlayStateOutputs::~CommandPlayStateOutputs ( )
override

Member Function Documentation

◆ doExecute()

const CscCommandExecutionResultNone * conscience_core::bridging::commands::CommandPlayStateOutputs::doExecute ( CscEnvironmentSimulator environmentSimulator)
overrideprotectedvirtual

◆ forWheelsSpeedPercent()

CommandPlayStateOutputs * conscience_core::bridging::commands::CommandPlayStateOutputs::forWheelsSpeedPercent ( const ptr< CscEntityReflexion > &  entityReflexion,
double  speedLeftPercent,
double  speedRightPercent,
float  stateDuration = 200,
float  stateDelay = 200 
)
static

◆ getEntityReflexion()

ptr< CscEntityReflexion > conscience_core::bridging::commands::CommandPlayStateOutputs::getEntityReflexion ( ) const
overrideprotectedvirtual

return entity reflexion if this command applies on an entityReflexion, otherwise return nullptr

Implements conscience_core::bridging::commands::CscCommand.

◆ getStateDelay()

float conscience_core::bridging::commands::CommandPlayStateOutputs::getStateDelay ( )

◆ getStateDuration()

float conscience_core::bridging::commands::CommandPlayStateOutputs::getStateDuration ( )

◆ getStateToPlay()

CscState * conscience_core::bridging::commands::CommandPlayStateOutputs::getStateToPlay ( )

◆ isRelativeValues()

bool conscience_core::bridging::commands::CommandPlayStateOutputs::isRelativeValues ( )

Member Data Documentation

◆ COMMAND_ID

const CommandTypeId conscience_core::bridging::commands::CommandPlayStateOutputs::COMMAND_ID = "PLAY_STATE_OUTPUTS"
inlinestatic

The documentation for this class was generated from the following files: