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

#include <CommandEnvironmentObjectUpdate.h>

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

Public Member Functions

 CommandEnvironmentObjectUpdate (float objectId, float objectModelId, string objectModelName, float positionX, float positionY, float positionZ, float rotationX, float rotationY, float rotationZ, string positionValueRelativeToObject)
 
float getObjectId ()
 
float getObjectModelId ()
 
string getObjectModelName ()
 
float getPositionX ()
 
float getPositionY ()
 
float getPositionZ ()
 
float getRotationX ()
 
float getRotationY ()
 
float getRotationZ ()
 
- 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 Attributes

static const CommandTypeId COMMAND_ID = "ENVIRONMENT_OBJECT_UPDATE"
 

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
 
- Static Public Member Functions inherited from conscience_core::bridging::commands::CscCommand
static void addCommandExecutedListener (CommandExecutedListener listener)
 
- Protected Attributes inherited from conscience_core::bridging::commands::CscCommand
const CommandTypeId typeId
 
optional< string > originalCommandString = {}
 

Constructor & Destructor Documentation

◆ CommandEnvironmentObjectUpdate()

conscience_core::bridging::commands::CommandEnvironmentObjectUpdate::CommandEnvironmentObjectUpdate ( float  objectId,
float  objectModelId,
string  objectModelName,
float  positionX,
float  positionY,
float  positionZ,
float  rotationX,
float  rotationY,
float  rotationZ,
string  positionValueRelativeToObject 
)

Member Function Documentation

◆ doExecute()

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

◆ getEntityReflexion()

ptr<CscEntityReflexion> conscience_core::bridging::commands::CommandEnvironmentObjectUpdate::getEntityReflexion ( ) const
inlineoverrideprotectedvirtual

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

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

◆ getObjectId()

float conscience_core::bridging::commands::CommandEnvironmentObjectUpdate::getObjectId ( )

◆ getObjectModelId()

float conscience_core::bridging::commands::CommandEnvironmentObjectUpdate::getObjectModelId ( )

◆ getObjectModelName()

string conscience_core::bridging::commands::CommandEnvironmentObjectUpdate::getObjectModelName ( )

◆ getPositionX()

float conscience_core::bridging::commands::CommandEnvironmentObjectUpdate::getPositionX ( )

◆ getPositionY()

float conscience_core::bridging::commands::CommandEnvironmentObjectUpdate::getPositionY ( )

◆ getPositionZ()

float conscience_core::bridging::commands::CommandEnvironmentObjectUpdate::getPositionZ ( )

◆ getRotationX()

float conscience_core::bridging::commands::CommandEnvironmentObjectUpdate::getRotationX ( )

◆ getRotationY()

float conscience_core::bridging::commands::CommandEnvironmentObjectUpdate::getRotationY ( )

◆ getRotationZ()

float conscience_core::bridging::commands::CommandEnvironmentObjectUpdate::getRotationZ ( )

Member Data Documentation

◆ COMMAND_ID

const CommandTypeId conscience_core::bridging::commands::CommandEnvironmentObjectUpdate::COMMAND_ID = "ENVIRONMENT_OBJECT_UPDATE"
inlinestatic

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