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

#include <CommandMemberToObjectFromMember.h>

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

Public Member Functions

 CommandMemberToObjectFromMember (ptr< CscEntityReflexion > entityReflexion, int knowledgeId, const CscState *currentState, string membreToMove, string membreRelative, string targetEntityObjectName, float distanceFromTargetX, float distanceFromTargetY, float distanceFromTargetZ, float targetEulerX, float targetEulerY, float targetEulerZ, float processAt)
 
 ~CommandMemberToObjectFromMember ()
 
int getKnowledgeId ()
 
const CscStategetCurrentState ()
 
string getMembreToMove ()
 
string getMembreRelative ()
 
string getTargetEntityObjectName ()
 
float getDistanceFromTargetX ()
 
float getDistanceFromTargetY ()
 
float getDistanceFromTargetZ ()
 
float getTargetEulerX ()
 
float getTargetEulerY ()
 
float getTargetEulerZ ()
 
- 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 = "MEMBER_TO_OBJECT_FROM_MEMBER"
 

Protected Member Functions

const CscCommandExecutionResultSequencedoExecute (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

◆ CommandMemberToObjectFromMember()

conscience_core::bridging::commands::CommandMemberToObjectFromMember::CommandMemberToObjectFromMember ( ptr< CscEntityReflexion entityReflexion,
int  knowledgeId,
const CscState currentState,
string  membreToMove,
string  membreRelative,
string  targetEntityObjectName,
float  distanceFromTargetX,
float  distanceFromTargetY,
float  distanceFromTargetZ,
float  targetEulerX,
float  targetEulerY,
float  targetEulerZ,
float  processAt 
)

◆ ~CommandMemberToObjectFromMember()

conscience_core::bridging::commands::CommandMemberToObjectFromMember::~CommandMemberToObjectFromMember ( )
inline

Member Function Documentation

◆ doExecute()

const CscCommandExecutionResultSequence * conscience_core::bridging::commands::CommandMemberToObjectFromMember::doExecute ( CscEnvironmentSimulator environmentSimulator)
overrideprotectedvirtual

◆ getCurrentState()

const CscState * conscience_core::bridging::commands::CommandMemberToObjectFromMember::getCurrentState ( )

◆ getDistanceFromTargetX()

float conscience_core::bridging::commands::CommandMemberToObjectFromMember::getDistanceFromTargetX ( )

◆ getDistanceFromTargetY()

float conscience_core::bridging::commands::CommandMemberToObjectFromMember::getDistanceFromTargetY ( )

◆ getDistanceFromTargetZ()

float conscience_core::bridging::commands::CommandMemberToObjectFromMember::getDistanceFromTargetZ ( )

◆ getEntityReflexion()

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

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

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

◆ getKnowledgeId()

int conscience_core::bridging::commands::CommandMemberToObjectFromMember::getKnowledgeId ( )

◆ getMembreRelative()

string conscience_core::bridging::commands::CommandMemberToObjectFromMember::getMembreRelative ( )

◆ getMembreToMove()

string conscience_core::bridging::commands::CommandMemberToObjectFromMember::getMembreToMove ( )

◆ getTargetEntityObjectName()

string conscience_core::bridging::commands::CommandMemberToObjectFromMember::getTargetEntityObjectName ( )

◆ getTargetEulerX()

float conscience_core::bridging::commands::CommandMemberToObjectFromMember::getTargetEulerX ( )

◆ getTargetEulerY()

float conscience_core::bridging::commands::CommandMemberToObjectFromMember::getTargetEulerY ( )

◆ getTargetEulerZ()

float conscience_core::bridging::commands::CommandMemberToObjectFromMember::getTargetEulerZ ( )

Member Data Documentation

◆ COMMAND_ID

const CommandTypeId conscience_core::bridging::commands::CommandMemberToObjectFromMember::COMMAND_ID = "MEMBER_TO_OBJECT_FROM_MEMBER"
inlinestatic

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