12 #include <vl/hostStructs.h>
68 virtual void initPendingDetonations();
72 virtual const char*
type()
const;
115 virtual double determineMuzzleSpeed(
double range);
121 virtual void addDispersion(
DtVector& detLocation,
122 bool addHeightDispersion);
126 virtual double calculateRangeFactorOnError(
const double rangeToTarget);
129 virtual double skillLevelModifier();
132 static void detonationCallback(
DtTimer * timer);
157 static void objectAddedCb(
const DtVrfObject* vrfObject,
void * usr);
163 virtual void processObjectAdded(
const DtVrfObject* vrfObject);
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual bool createPSR()
Creates #myProcessState data member, and adds it to our process state repository manager.
DtVrfIndirectFirePSR * myIndirectFireProcessState
We've overrode createPSR() to create derived kind of DtVrfWeaponPSR.
Definition: indirectFireActuator.h:245
DtVectorOutputPort * myMuzzleOffsetPort
Output Port Name: muzzle-offset-port Output Port Description: The entity's muzzle offset location...
Definition: indirectFireActuator.h:235
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
Instances of DtTimer are used to maintain the information needed to represent some kind of scheduled ...
Definition: timer.h:45
virtual bool taskVisualizationsActive() const
Returns true if task visualizations are currently active for this component.
DtBooleanInputPort * myAlignedDirectlyPort
Input Port Name: aligned-directly-port Input Port Description: Whether this gun can align directly wi...
Definition: indirectFireActuator.h:228
DtAnalogInputPort * myAngleOfFirePort
Input Port Name: angle-of-fire-port Input Port Description: Elevation angle of fire in radians...
Definition: indirectFireActuator.h:220
const DtWeaponActuator & operator=(const DtWeaponActuator &orig)
assignment operator; not implemented
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
DtReal myMuzzleSpeed
Definition: indirectFireActuator.h:239
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
Definition: readerWriterRegistry.h:39
virtual void updateTaskVisualizations()
Called to update task visualizations after every tick.
Definition: simComponent.h:485
Instances of DtVectorOutputPort are output ports through which data producers can send a DtVector...
Definition: vectorIOPort.h:52
class DtDetonationDescriptor:
Definition: detonationDescriptor.h:33
DtWeaponActuator is a simple model of a ballistic gun.
Definition: weaponActuator.h:50
virtual bool postAddComponentsInit()
Overridden to initialize the value on myArtPartTypePort.
virtual void fireTheWeapon()
Calls createFireInteraction() and sends the resulting DtFireInteraction through the exercise connecti...
DtIndirectFireActuator is an actuator that provides a simple model of a cannon.
Definition: indirectFireActuator.h:39
static DtSimComponent * creator(const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
virtual bool createPorts()
Creates the input ports and adds them to the component.
DtDetonationPdu DtDetonationInteraction
Definition: DistributedSimulationDriver3A.h:14
DtIndirectFireActuatorDescriptor * myIndirectFireActuatorDescriptor
Definition: indirectFireActuator.h:241
DtList myTimerList
Definition: indirectFireActuator.h:240
DtVectorInputPort * myTargetPointPort
Input Port Name: target-point-port Input Port Description: Local position to fire at...
Definition: indirectFireActuator.h:206
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
virtual DtFireInteraction * createFireInteraction()
Creates and fills out a DtFireInteraction. Returns a DtFireInteraction.
virtual const char * type() const
Returns a string identifies the class type of component.
DtAnalogInputPort * myMuzzleSpeedPort
Input Port Name: muzzle-speed-port Input Port Description: Muzzle speed in meters/second.
Definition: indirectFireActuator.h:213
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
File: indirectFirePSR.h.
Definition: vrfIndirectFirePSR.h:28
DtIndirectFireActuatorDescriptor; descriptor for the DtIndirectFireActuator component.
Definition: indirectFireActuatorDescriptor.h:20