77 virtual const char*
type()
const override;
82 virtual bool init()
override;
94 virtual void tick()
override;
97 virtual void fire()
override;
123 virtual const DtVector chooseLocationTarget();
129 virtual void tickMunitionLoader(
const DtSimObject* target);
151 virtual bool acquireTarget(
const DtSimObject* target);
155 virtual bool acquireLocationTarget(
const DtVector locTarget);
160 virtual void maneuverRequiredToAcquireTarget(DtReal requiredHeading,
161 DtReal requiredPitch,
162 DtReal requiredMaxSpeed);
165 bool outOfAmmo()
const;
171 virtual bool loadedAmmoValidForTarget(
const DtSimObject* target)
const;
189 virtual bool chooseAmmo(
const DtEntityType& entityType,
191 bool setCurrentMunition =
true);
198 virtual bool acceptSensorTargettingInput();
203 virtual bool inSector(
const DtSimObject* entity)
const;
207 virtual void findBodyHeadingElevationToTarget(
const DtSimObject* entity,
208 DtReal &bodyHeadingOut,
209 DtReal &bodyElevationOut)
const;
226 virtual void enable()
override;
228 virtual void disable()
override;
236 virtual void addRangeItems();
240 virtual bool positionWithinTargetRegion(
const DtVector& localPosition);
241 virtual void setupRegionEvaluator();
243 virtual void updateRegionEvaluator();
270 virtual bool isFireMissileLauncherTasked()
const;
273 bool hasTarget()
const;
282 virtual const DtVector locationTarget()
const;
284 void setRoundsFiredUponTarget(
const int& roundsFired);
285 const int roundsFiredUponTarget()
const;
286 const int totalRoundsToFireUponTarget()
const;
287 void setIsExplicitlyTasked(
const bool& explicitlyTasked);
288 const bool isExplicitlyTasked()
const;
289 void setWeaponStatus(
const int weaponStatus);
290 const int weaponStatus()
const;
std::map< DtString, DtSimMunition > myUsableMunitions
Definition: weaponController.h:321
UUID is a unique ID wrapper class.
Definition: uuid.h:59
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtMountingController; models rotation of a launcher.
Definition: mountingController.h:23
virtual void disable() override
Overridden to allow tasks controllers that can be disabled to call task complete. ...
DtBaseWeaponController is a controller that creates the ports needed to choose ammo for...
Definition: baseWeaponController.h:34
Task for firing the missile launcher at a target.
Definition: fireMissileLauncherTask.h:25
DtWeaponController is a controller that extends the DtBaseWeaponController with the ability to accept...
Definition: weaponController.h:59
virtual const char * type() const override
Returns a string identifies the class type of component. Type values are defined in compTypes...
DtBoost::shared_ptr< DtSpatialFilterEvaluator > myRegionEvaluator
Definition: weaponController.h:325
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
LocationType
Definition: rwLocationReference.h:28
This file contains the class declaration for the.
DtMountingController * myMountingController
Definition: weaponController.h:315
const DtBaseWeaponController & operator=(const DtBaseWeaponController &orig)
assignment operator; not implemented
virtual bool createPorts() override
Overridden to create input & output ports.
An implementation of DtWeaponInforInterface that allows for flexible registering of functions from ot...
Definition: genericWeaponInfo.h:17
File: simMsg.h.
Definition: simMessage.h:35
An abstract base class for all evaluators of spatial filters. The evaluation of spatial filters is sp...
Definition: spatialFilterEvaluator.h:30
DtWeaponComponentInterface * myWeaponComponentInterface
Definition: weaponController.h:318
virtual void fire()
fires the weapon
virtual void preFirstTickInit() override
This function can be overridden to initialize a component before it is ticked for the first time...
DtWeaponStatus
The status items below are used as bit fields. To set a state, OR the enumerated value into the weapo...
Definition: baseWeaponComponentInterface.h:34
virtual bool createMountingController()
Creates myBaseMountingController.
DtUUID myCurrentTarget
Definition: weaponController.h:299
TargetApplicability
Definition: weaponInfoInterface.h:21
DtTime myLastRegionEvaluatorUpdateTime
Definition: weaponController.h:326
virtual void tick() override
Sets the current dT on the base mounting controller and ticks it.
DtGenericWeaponInfo * myWeaponInfo
Definition: weaponController.h:319
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:94
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=nullptr, DtReaderWriterRegistry *parentRegistry=nullptr)
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:91
Represents a single simulation object in the exercise. Object may be VRF simulation, or non-VRF simulated, and may be simulated by the local sim engine, or by a remote sim engine. Only public (external) state of the object is available. All data is read-only. All access to data of the object is thread safe within the simulation frame.
Definition: simObject.h:88
virtual void enable() override
Overridden to call registerTaskMsgCallbacks().
const DtWeaponControllerDescriptor * myWeaponCtlrDesc
Definition: weaponController.h:316
double myMaxMunitionEffectiveRange
Definition: weaponController.h:323
virtual bool init() override
Overridden to initialize values obtained from the descriptor.
DtSimMunition class.
Definition: simMunition.h:31
DtBooleanInputPort * myWeaponsHoldPort
Input Port Name: weapons-hold Input Port Description: When true, all firing of missiles is disabled...
Definition: weaponController.h:310
Represents the interface between the DtTargetSelectionController and a weapon system.
Definition: weaponComponentInterface.h:20
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86
DtWeaponControllerDescriptor; descriptor for the DtWeaponController component.
Definition: weaponControllerDescriptor.h:26