14 #include <vl/fireInteraction.h>
15 #include <vl/detonationInteraction.h>
17 #include <vl/hostStructs.h>
73 virtual const char*
type()
const;
83 virtual void fireTheWeapon();
86 virtual DtFireInteraction * createFireInteraction();
88 virtual void setProjectileStartSpeed(DtReal startSpeed);
89 virtual DtReal projectileStartSpeed();
91 virtual void setMuzzleOffset(
const DtVector& muzzleOffset);
92 virtual const DtVector& muzzleOffset();
105 virtual DtVector muzzleLocalPosition();
114 virtual DtDcm weaponOrientation();
148 virtual bool createPSR();
DtReal myProjectileStartSpeed
Definition: weaponActuator.h:216
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual bool postAddComponentsInit()
Called after all components have been created, initialized and added to the component manager...
Definition: simComponent.h:144
DtConstrainedIntegerInputPort * myFusePort
Input Port Name: fuze Input Port Description: DIS Enumeration for fuze (see DIS Enumeration and Bit E...
Definition: weaponActuator.h:184
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
DtBooleanInputPort * myTriggerPort
Input Port Name: trigger Input Port Description: True to fire.
Definition: weaponActuator.h:191
const DtActuatorComponent & operator=(const DtActuatorComponent &orig)
assignment operator
virtual bool init()
Overridden to cache a pointer to the entity's radio in this class.
DtAmmunitionInputPort * myAmmunitionPort
Input Port Name: ammunition Input Port Description: Type of ammo to fire.
Definition: weaponActuator.h:176
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
DtReal myCurrentRange
Definition: weaponActuator.h:223
Definition: readerWriterRegistry.h:39
DtOutputPortGroup is a data port group of a data provider.
Definition: outputPortGroup.h:30
File: weaponPSR.h.
Definition: vrfWeaponPSR.h:31
DtIntegerOutputPort * myArtPartTypePort
Output Port Name: art-part-type Output Port Description: Type of the articulated part.
Definition: weaponActuator.h:210
DtInputPortGroup * myWeaponInputPortGroup
Input Port Group Name: weapon-control Input Port Group Description:
Definition: weaponActuator.h:169
End User Description: DtActuator is the base class for all actuator model components.
Definition: actuatorComponent.h:48
DtSharedVrfObjectReference class will allocate an empty DtVrfObjectReference if one is not assigned s...
Definition: vrfObjectReference.h:102
DtEventId myCurrentEventId
Definition: weaponActuator.h:222
DtWeaponActuator is a simple model of a ballistic gun.
Definition: weaponActuator.h:50
virtual void tick()
This gives the thread of control to the component.
The DtArticulatedPartStateRepository class is used to represent articulated parts for an entity...
Definition: articulatedPartStateRepository.h:29
DtSharedVrfObjectReference myCurrentEntityTarget
These are set by createFireInteraction and used by createDetonationInteraction.
Definition: weaponActuator.h:221
virtual bool createPorts()
Called by init.
virtual bool createPortGroups()
Called by init.
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
DtOutputPortGroup * myWeaponOutputPortGroup
Output Port Group Name: weapon-info Output Port Group Description:
Definition: weaponActuator.h:202
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
Instances of DtIntegerOutputPort are output ports through which data producers can send integer value...
Definition: integerIOPort.h:45
DtWeaponActuatorDescriptor * myWeaponActuatorDescriptor
Definition: weaponActuator.h:214
DtWeaponActuatorDescriptor; descriptor for the DtWeaponActuator component.
Definition: weaponActuatorDescriptor.h:24
DtBooleanInputPort * myLoadedPort
Input Port Name: loaded Input Port Description: True if loaded.
Definition: weaponActuator.h:198
virtual const char * type() const =0
Returns a string identifies the class type of component.
DtVrfWeaponPSR * myWeaponProcessState
Definition: weaponActuator.h:224
DtVector myMuzzleOffset
Definition: weaponActuator.h:217