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

#include <environmentEntitiesCommands.h>

Inheritance diagram for conscience_core::bridging::commands::environment_entities::CommandFollowTrackedObject:
conscience_core::bridging::commands::CscCommand

Public Member Functions

 CommandFollowTrackedObject (ptr< CscEntityReflexion > entityReflexion, int idObjectToFollow, float followDistance, float followAltitude)
 
 ~CommandFollowTrackedObject () override
 
- 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)
 

Public Attributes

const int idObjectToFollow
 
const float followDistance
 
float followAltitude
 

Static Public Attributes

static const CommandTypeId COMMAND_ID = "FOLLOW_TRACKED_OBJECT"
 

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

◆ CommandFollowTrackedObject()

conscience_core::bridging::commands::environment_entities::CommandFollowTrackedObject::CommandFollowTrackedObject ( ptr< CscEntityReflexion entityReflexion,
int  idObjectToFollow,
float  followDistance,
float  followAltitude 
)

Makes given entity follow a specific detected object (based on its world id)

◆ ~CommandFollowTrackedObject()

conscience_core::bridging::commands::environment_entities::CommandFollowTrackedObject::~CommandFollowTrackedObject ( )
override

Member Function Documentation

◆ doExecute()

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

◆ getEntityReflexion()

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

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

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

Member Data Documentation

◆ COMMAND_ID

const CommandTypeId conscience_core::bridging::commands::environment_entities::CommandFollowTrackedObject::COMMAND_ID = "FOLLOW_TRACKED_OBJECT"
inlinestatic

◆ followAltitude

float conscience_core::bridging::commands::environment_entities::CommandFollowTrackedObject::followAltitude

◆ followDistance

const float conscience_core::bridging::commands::environment_entities::CommandFollowTrackedObject::followDistance

◆ idObjectToFollow

const int conscience_core::bridging::commands::environment_entities::CommandFollowTrackedObject::idObjectToFollow

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