53 virtual const char*
type()
const override;
56 virtual void tick()
override;
68 virtual void setDetectionProximity(
double);
69 virtual double detectionProximity()
const;
73 virtual void senseObjects(
const DtRwEntityTypeList&,
bool hostileOnly,
bool detectOwnForce);
76 virtual void setObjectTypesToDetect(
const std::vector<std::string>&,
bool hostileOnly);
90 virtual bool init()
override;
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
virtual void bindLuaFunctions(lua_State *)=0
Override to bind lua functions.
class DtRwEntityTypeList:
Definition: rwEntityTypeList.h:23
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
Definition: bindableLuaComponent.h:53
std::vector< DtEntityType > myObjectTypesToDetect
Outputs: Output Port Name: detected-objects Output Port Description: The list of contacts detected b...
Definition: simpleProximitySensor.h:105
DtSimpleProximitySensorDescriptor; descriptor for the DtSimpleProximitySensor component.
Definition: simpleProximitySensorDescriptor.h:29
DtSimpleProximitySensor senses supplied objects within the given distance. Provides lua bindings for ...
Definition: simpleProximitySensor.h:25
class DtSimpleProximitySensorPSR:
Definition: simpleProximitySensorPSR.h:24
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
DtSimComponent & operator=(const DtSimComponent &orig)
assignment operator, not implemented
virtual bool createPorts()
Called by init. Derived classes should override this method to create all their input/output ports an...
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
Contains the DtSimComponent class declaration.
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
DtSimpleProximitySensorDescriptor * myDescriptor
Outputs: Output Port Name: detected-objects Output Port Description: The list of contacts detected b...
Definition: simpleProximitySensor.h:110
virtual void bindLuaGlobals(lua_State *)=0
Override to bind lua globals.
DtSimpleProximitySensorPSR * myProcessState
Outputs: Output Port Name: detected-objects Output Port Description: The list of contacts detected b...
Definition: simpleProximitySensor.h:108
DtSensorContactInfoList myContactInfoList
Outputs: Output Port Name: detected-objects Output Port Description: The list of contacts detected b...
Definition: simpleProximitySensor.h:106
virtual const char * type() const =0
Returns a string identifies the class type of component. Type values are defined in compTypes...
A locally simulated VRF object.
Definition: localObject.h:98