73 virtual const char*
type()
const;
115 virtual void tickMunitionLoader(
const DtSimObject* target);
137 virtual bool acquireTarget(
const DtSimObject* target);
142 virtual void maneuverRequiredToAcquireTarget(DtReal requiredHeading,
143 DtReal requiredPitch,
144 DtReal requiredMaxSpeed);
147 bool outOfAmmo()
const;
153 virtual bool loadedAmmoValidForTarget(
const DtSimObject* target)
const;
171 virtual bool chooseAmmo(
const DtEntityType& entityType,
173 bool setCurrentMunition =
true);
180 virtual bool acceptSensorTargettingInput();
185 virtual bool inSector(
const DtSimObject* entity)
const;
189 virtual void findBodyHeadingElevationToTarget(
const DtSimObject* entity,
190 DtReal &bodyHeadingOut,
191 DtReal &bodyElevationOut)
const;
218 virtual void addRangeItems();
std::map< DtString, DtSimMunition > myUsableMunitions
Definition: weaponController.h:263
UUID is a unique ID wrapper class.
Definition: rwUUID.h:229
#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 tick()
Sets the current dT on the base mounting controller and ticks it.
DtBaseWeaponController is a controller that creates the ports needed to choose ammo for...
Definition: baseWeaponController.h:33
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
DtWeaponController is a controller that extends the DtBaseWeaponController with the ability to accept...
Definition: weaponController.h:55
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
DtEntityListInputPort * myTargetListPort
Input Port Name: target-list Input Port Description: List of targets detected. Input Port Range: Inp...
Definition: weaponController.h:245
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
This file contains the class declaration for the.
virtual void disable()
Is this component enabled or not. If enabled, component's tick function will be called, otherwise it will not. Default is true (enabled).
virtual bool createPorts()
Overridden to create input & output ports.
DtMountingController * myMountingController
Definition: weaponController.h:258
const DtBaseWeaponController & operator=(const DtBaseWeaponController &orig)
assignment operator; not implemented
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
virtual void enable()
Is this component enabled or not. If enabled, component's tick function will be called, otherwise it will not. Default is true (enabled).
File: simMsg.h.
Definition: simMessage.h:35
DtWeaponComponentInterface * myWeaponComponentInterface
Definition: weaponController.h:261
virtual void fire()
fires the weapon
virtual bool createMountingController()
Creates myBaseMountingController.
DtUUID myCurrentTarget
Definition: weaponController.h:235
virtual bool init()
Overridden to initialize values obtained from the descriptor.
virtual const char * type() const
Returns a string identifies the class type of component. Type values are defined in compTypes...
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:90
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
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:79
const DtWeaponControllerDescriptor * myWeaponCtlrDesc
Definition: weaponController.h:259
double myMaxMunitionEffectiveRange
Definition: weaponController.h:265
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:253
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:25