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

#include <CommandMemberToStateFromMember.h>

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

Public Member Functions

 CommandMemberToStateFromMember (ptr< CscEntityReflexion > entityReflexion, int knowledgeId, const CscState *currentState, const string &membreToMove, const string &membreRelative, float targetPositionX, float targetPositionY, float targetPositionZ, float targetPositionXPonderation, float targetPositionYPonderation, float targetPositionZPonderation, float targetEulerX, float targetEulerY, float targetEulerZ, float targetEulerXPonderation, float targetEulerYPonderation, float targetEulerZPonderation, float targetAccX, float targetAccY, float targetAccZ, float targetAccXPonderation, float targetAccYPonderation, float targetAccZPonderation, CscUnitType unitType, bool symetrySearch, int nbStateMax, int deltaPerStateMax, bool optionCutLastestIfTheSameAndWorst, bool optionCutBeginingIfTheSame, bool optionDeltaPerStateMaxDegressive, float percentAvg, float percentMax, int stateDuration, int stateDelay, float solvedAt, float processAt, const array< bool, 4 > &outputTypes, CscArtificialIntelligenceTypes aiTypes)
 
 ~CommandMemberToStateFromMember ()
 
int getKnowledgeId ()
 
const CscStategetCurrentState ()
 
string getMembreToMove ()
 
string getMembreRelative ()
 
float getTargetPositionX ()
 
float getTargetPositionY ()
 
float getTargetPositionZ ()
 
float getTargetEulerX ()
 
float getTargetEulerY ()
 
float getTargetEulerZ ()
 
CscUnitType getUnitType ()
 
- 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_STATE_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

◆ CommandMemberToStateFromMember()

conscience_core::bridging::commands::CommandMemberToStateFromMember::CommandMemberToStateFromMember ( ptr< CscEntityReflexion entityReflexion,
int  knowledgeId,
const CscState currentState,
const string &  membreToMove,
const string &  membreRelative,
float  targetPositionX,
float  targetPositionY,
float  targetPositionZ,
float  targetPositionXPonderation,
float  targetPositionYPonderation,
float  targetPositionZPonderation,
float  targetEulerX,
float  targetEulerY,
float  targetEulerZ,
float  targetEulerXPonderation,
float  targetEulerYPonderation,
float  targetEulerZPonderation,
float  targetAccX,
float  targetAccY,
float  targetAccZ,
float  targetAccXPonderation,
float  targetAccYPonderation,
float  targetAccZPonderation,
CscUnitType  unitType,
bool  symetrySearch,
int  nbStateMax,
int  deltaPerStateMax,
bool  optionCutLastestIfTheSameAndWorst,
bool  optionCutBeginingIfTheSame,
bool  optionDeltaPerStateMaxDegressive,
float  percentAvg,
float  percentMax,
int  stateDuration,
int  stateDelay,
float  solvedAt,
float  processAt,
const array< bool, 4 > &  outputTypes,
CscArtificialIntelligenceTypes  aiTypes 
)

◆ ~CommandMemberToStateFromMember()

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

Member Function Documentation

◆ doExecute()

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

◆ getCurrentState()

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

◆ getEntityReflexion()

ptr<CscEntityReflexion> conscience_core::bridging::commands::CommandMemberToStateFromMember::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::CommandMemberToStateFromMember::getKnowledgeId ( )

◆ getMembreRelative()

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

◆ getMembreToMove()

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

◆ getTargetEulerX()

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

◆ getTargetEulerY()

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

◆ getTargetEulerZ()

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

◆ getTargetPositionX()

float conscience_core::bridging::commands::CommandMemberToStateFromMember::getTargetPositionX ( )

◆ getTargetPositionY()

float conscience_core::bridging::commands::CommandMemberToStateFromMember::getTargetPositionY ( )

◆ getTargetPositionZ()

float conscience_core::bridging::commands::CommandMemberToStateFromMember::getTargetPositionZ ( )

◆ getUnitType()

CscUnitType conscience_core::bridging::commands::CommandMemberToStateFromMember::getUnitType ( )

Member Data Documentation

◆ COMMAND_ID

const CommandTypeId conscience_core::bridging::commands::CommandMemberToStateFromMember::COMMAND_ID = "MEMBER_TO_STATE_FROM_MEMBER"
inlinestatic

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