58 virtual const char*
type()
const override;
61 virtual bool init()
override;
69 virtual void tick()
override;
84 virtual void getMunitionResources(std::list<DtEntityType>& resourceList);
96 static void fireCruiseMissileCallback(
DtSimMessage * msg,
void * usr);
97 virtual bool processFireCruiseMissileTask(
DtSimMessage * msg);
101 virtual bool positionWithinTargetRegion(
const DtVector& localPos);
104 virtual double maximumRange();
105 virtual double minimumRange();
class DtIfPlan:
Definition: ifPlan.h:61
virtual bool init() override
Initialize the component. Calls createPSR() and registerRadioMessageCallbacks()
UUID is a unique ID wrapper class.
Definition: uuid.h:59
DtFireCruiseMissileTask is a task message for launching cruise missiles. It contains a target object...
Definition: fireCruiseMissileTask.h:22
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtCruiseMissileLaunchController models launch of a cruise missile.
Definition: cruiseMissileLaunchController.h:35
virtual const char * type() const override
Returns a string identifies the class type of component. Type values are defined in compTypes...
virtual void registerTaskMsgCallbacks()
AcceptLevel
Levels that a task controller can accept a task it has registered for.
Definition: taskControllerComponent.h:55
Holds a position of some form. May be an absolute position, or a reference to another object...
Definition: rwLocationReference.h:25
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
virtual DtIfPlan createMunitionPlan(const DtUUID &munition)
Creates a new plan for the munition using the task saved in this controller. In this base munition la...
Definition: readerWriterRegistry.h:39
virtual void tick() override
Tick Function. When the component has a launch munition task and at least the minimum-time-between-la...
DtPlatformLocalObjectFacade myPlatformLocalObjectFacade
Member to allow for access to platform specific data.
Definition: cruiseMissileLaunchController.h:112
An implementation of DtWeaponInforInterface that allows for flexible registering of functions from ot...
Definition: genericWeaponInfo.h:17
File: simMsg.h.
Definition: simMessage.h:35
DtMunitionLaunchController models launch of a munition.
Definition: munitionLaunchController.h:49
virtual void setComponentDescriptor(DtComponentDescriptor *compDesc) override
Overridden to get the specialized DtMunitionLaunchControllerDescriptor.
virtual DtUUID getTargetFromTaskMessage(const DtTaskMessage *tm) const
Gets the target name from the task message. Used in createAndSend FireInteraction. Can be different for classes that override this one, if their task messages are different.
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
DtSimTask is an abstract base class from which real tasks can derive. It manages the read/write capab...
Definition: simTask.h:30
DtGenericWeaponInfo * myWeaponInfo
Definition: cruiseMissileLaunchController.h:113
virtual AcceptLevel acceptTask(const DtTaskMessage &task)
Called by the task manager when this controller is being considered to execute a task. Only tasks which already match types that this controller has registered for will be passed. This is used for the case where multiple task controllers have registered for the same task type. This gives the controller a chance to look at the parameters of the task and to reject the execution of the task based on parameters. Controllers can return any of the AcceptLevel levels. The task manager will choose a controller with the lowest AcceptLevel to execute, but will not choose any controller that returns AcceptLevel_NoAccept. Default implementation returns AcceptLevel_Accept. Override this to check parameters and conditionally return a different AccpetLevel.
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
DtMunitionLaunchController & operator=(const DtMunitionLaunchController &orig)
Not implemented.
A DtTaskMsg is a DtRadioMsg with a pointer to a task. The type of the taskMsg is just the type of the...
Definition: taskMessage.h:21
virtual DtSetWarheadInfo createWarheadInfo(DtVrfLocalObjectCreateInformation &info, const DtString &eventId) const
Sets parameters of the warhead in a SetDataRequestMessage. In this base munition launcher, the only information that is set is attacker, event ID, the warhead type and fuze type. The latter two come from the controller descriptor. Derived launchers can override this function to set different parameters. Also, other controllers and scripts can send additional set-warhead-info messages to the munition to change the warhead info.
File: setWarheadInfo.h.
Definition: setWarheadInfo.h:40
A locally simulated VRF object.
Definition: localObject.h:98