16 #include <vl/hostStructs.h>
18 #include <vlpi/disEnums.h>
60 virtual const char*
type()
const;
80 virtual bool createTriggerPort();
85 virtual bool createArmedPort();
88 virtual bool createQuantityOutputPort();
91 virtual void setDetonationTime(
DtTime detTime);
92 virtual DtTime detonationTime()
const;
97 virtual void detonate();
101 virtual void beginSensing();
108 virtual bool setMunitionToDetonate(
DtSimMunition& munition );
113 static void setDetonationCallback(
DtSimMessage* msg,
void* usrData);
118 static void setArmedCallback(
DtSimMessage * msg,
void * usr);
122 static void setRestoreCallback(
DtSimMessage * msg,
void * usrData);
127 virtual DtDetonatorFuze fuseStringToEnum(
const DtString & fuseString);
130 virtual DtString fuseStringToEnum(DtDetonatorFuze fuse);
146 virtual bool createTypesToDetectPort();
155 virtual void lookupAndCacheProcessSR();
158 virtual void registerRadioMessageCallbacks();
const DtDetonationControllerDescriptor * myDetonationDescriptor
Definition: detonationController.h:232
#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
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
DtObjectTypesListOutputPort * myTypesToDetectOutputPort
Output Port Name: object-types-to-spot-report Output Port Description: List of types of object the sp...
Definition: detonationController.h:191
Instances of DtBooleanOutputPort are output ports through which data producers can send boolean data...
Definition: boolIOPort.h:45
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: singleTaskControllerComponent.h:20
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 const char * type() const =0
Returns a string identifies the class type of component.
virtual bool init()
Calls setRadio()
This file contains the class declaration for the.
DtIntegerOutputPort * myQuantityOutputPort
Output Port Name: quantity Output Port Description: Sends the number of rounds to be fired with a sin...
Definition: detonationController.h:213
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component.
DtDetonationController is used to detonate a bomb like munition.
Definition: detonationController.h:37
Instances of DtObjectTypesListOutputPort are output ports through which data producers can send a lis...
Definition: objectTypesListIOPort.h:46
DtBooleanOutputPort * myTriggerPort
Output Port Name: trigger Output Port Description: Sends a new True value when trigger is pulled...
Definition: detonationController.h:198
DtTime myDetonationTime
Definition: detonationController.h:220
DtDetonatorFuze myCurrentFuze
Definition: detonationController.h:219
virtual bool createPorts()
Called by init.
DtWarheadDetonationActuatorPSR * myProcessState
Pointer to a process state repository used to store state data associated with this component...
Definition: detonationController.h:230
DtDetonationControllerDescriptor; descriptor for the DtDetonationController component.
Definition: detonationControllerDescriptor.h:29
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
DtSimMunition myCurrentMunition
The muntition and fuse to be used in the detonation.
Definition: detonationController.h:218
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
class DtWarheadDetonationActuatorPSR:
Definition: warheadDetonationActuatorPSR.h:27
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
DtSimMunition class.
Definition: simMunition.h:34
DtSensorContactListMultiInputPort * myDetectedObjectsInputPort
Input Port Name: detected-objects Input Port Description: List of contacts that fall within our range...
Definition: detonationController.h:183
bool myAmArmed
Definition: detonationController.h:221
double myDetonationProximity
Definition: detonationController.h:223
DtBooleanOutputPort * myArmedPort
Output Port Name: armed Output Port Description: Set to true when the object is armed so warhead can ...
Definition: detonationController.h:205