17 class DtReflectedDesignator;
51 virtual const char*
type()
const;
65 virtual bool createPSR();
87 virtual void addRangeItems();
93 virtual bool missileResourceAvailable()
const;
96 virtual void consumeMissileResource();
99 virtual bool fireMunition(DtReflectedDesignator* target);
108 virtual void createAndSendFireInteraction(
const DtVrfObject* missile,
109 DtReflectedDesignator* targetDesignator,
110 const DtEventId& eventId);
119 virtual DtReflectedDesignator* chooseTarget(
bool& targetInFireCone,
DtVector& targetLocalPosition);
127 virtual bool targetDesginatorValid(DtReflectedDesignator* target,
131 virtual bool targetDesginatorInFireCone(DtReflectedDesignator* target);
135 virtual bool munitionLoaded()
const;
139 virtual DtVector launcherGeocentricPosition()
const;
143 virtual DtVector launcherLocalPosition()
const;
146 virtual bool missileInFlight();
149 virtual int defaultLaserCode()
const;
152 virtual bool permissionToFire(
const DtVector& localSpotPosition)
const;
155 virtual bool canFireAtBasedOnTargetPriorityListRoe(
const DtVrfObject*)
const;
159 static void setLaserCodeRequestCallback(
DtSimMessage* msg,
void* usrData);
160 virtual void processSetLaserCodeRequestMessage(
DtSimMessage* msg);
166 static void setSyncLaserCodeCallback(
DtSimMessage* msg,
void* usr);
167 virtual void processSetSyncLaserCode(
DtSimMessage* msg);
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
const DtControllerComponent & operator=(const DtControllerComponent &orig)
assignment operator
const DtLaserGuidedLauncherControllerDescriptor * myDescriptor
Pointer to my descriptor.
Definition: laserGuidedLauncherController.h:172
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
virtual const char * type() const =0
This returns a string from compTypes.h, and identifies the type of component.
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 bool init()
Calls setRadio()
Instances of DtVectorOutputPort are output ports through which data producers can send a DtVector...
Definition: vectorIOPort.h:52
DtLaserLauncherPSR * myProcessState
Container for state data associated with this component.
Definition: laserGuidedLauncherController.h:176
virtual void setComponentDescriptor(DtComponentDescriptor *componentDescriptor)
The component descriptor specified in the order of battle file or parameter file that was used to cre...
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component.
virtual bool createPorts()
Called by init.
End User Description: DtControllerComponent is the base class for all controllers components...
Definition: controllerComponent.h:29
File: laserLauncherPSR.h.
Definition: laserLauncherPSR.h:34
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
Parameters for the DtLaserGuidedLauncherController.
Definition: laserGuidedLauncherControllerDescriptor.h:28
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
End User Description: This is a missile launcher controller/actuator combination (does not need to be...
Definition: laserGuidedLauncherController.h:28
bool myTargetWasFoundLastTick
A state variable to remember that a target was found the tick before the current tick; used to delay ...
Definition: laserGuidedLauncherController.h:193