45 virtual const char*
type()
const override;
60 virtual void tick()
override;
69 virtual bool aimGun()
override;
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtBallisticGun provides a simple model of a ballistic gun.
Definition: ballisticGun.h:43
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
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
const DtBallisticGun & operator=(const DtBallisticGun &orig)
assignment operator; not implemented
virtual const char * type() const override
Returns a string identifies the class type of component. Type values are defined in compTypes...
virtual bool createPorts() override
Overridden to create local ports.
DtHumanGunActuatorDescriptor * myHumanGunDescriptor
Definition: humanGunActuator.h:84
DtHumanGunActuator provides a simple model of a hand held gun.
Definition: humanGunActuator.h:26
virtual bool aimGun()
Aims the gun based on input ports. Uses the myAimElevationInputPort to determine the correct elevatio...
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
DtHumanGunActuatorDescriptor; a descriptor for the DtHumanGunActuator component.
Definition: humanGunActuatorDescriptor.h:19
DtAnalogInputPort * myAimAzimuthInputPort
Input Port Name: aim-azimuth Input Port Description: Azimuth at which to aim, in radians. Input Port Range: -pi to pi Input Port Default Value: 0 .
Definition: humanGunActuator.h:93
virtual void tick() override
Update the gun elevation. If elevation is correct and the trigger port says fire, then fire...
DtHumanLocalObjectFacade myHumanLocalObjectFacade
Member to allow for access to platform specific data.
Definition: humanGunActuator.h:98
A locally simulated VRF object.
Definition: localObject.h:98