16 #include <vl/hostStructs.h>
74 virtual const char*
type()
const;
110 virtual const DtVrfObject * chooseTarget(
const DtEntityTargetList& targetList)
const;
116 virtual void tickMunitionLoader(
const DtVrfObject* target);
138 virtual bool acquireTarget(
const DtVrfObject* target);
143 virtual void maneuverRequiredToAcquireTarget(DtReal requiredHeading,
144 DtReal requiredPitch,
145 DtReal requiredMaxSpeed);
148 bool outOfAmmo()
const;
154 virtual bool loadedAmmoValidForTarget(
const DtVrfObject* target)
const;
172 virtual bool chooseAmmo(
const DtEntityType& entityType,
174 bool setCurrentMunition =
true);
181 virtual bool acceptSensorTargettingInput();
186 virtual bool inSector(
const DtVrfObject * entity)
const;
190 virtual void findBodyHeadingElevationToTarget(
const DtVrfObject *entity,
191 DtReal &bodyHeadingOut,
192 DtReal &bodyElevationOut)
const;
220 virtual void addRangeItems();
std::map< DtString, DtSimMunition > myUsableMunitions
Definition: weaponController.h:265
UUID is a unique ID wrapper class.
Definition: rwUUID.h:222
#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
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
static DtSimComponent * creator(const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
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
DtWeaponController is a controller that extends the DtBaseWeaponController with the ability to accept...
Definition: weaponController.h:56
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
DtEntityListInputPort * myTargetListPort
Input Port Name: target-list Input Port Description: List of targets detected.
Definition: weaponController.h:247
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
This file contains the class declaration for the.
virtual bool createPorts()
Overridden to create input & output ports.
DtMountingController * myMountingController
Definition: weaponController.h:260
const DtBaseWeaponController & operator=(const DtBaseWeaponController &orig)
assignment operator; not implemented
virtual void enable()
Is this component enabled or not.
File: simMsg.h.
Definition: simMessage.h:35
DtWeaponComponentInterface * myWeaponComponentInterface
Definition: weaponController.h:263
virtual void fire()
fires the weapon
virtual bool createMountingController()
Creates myBaseMountingController.
DtUUID myCurrentTarget
Definition: weaponController.h:237
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.
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
const DtWeaponControllerDescriptor * myWeaponCtlrDesc
Definition: weaponController.h:261
double myMaxMunitionEffectiveRange
Definition: weaponController.h:267
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
DtSimMunition class.
Definition: simMunition.h:34
DtBooleanInputPort * myWeaponsHoldPort
Input Port Name: weapons-hold Input Port Description: When true, all firing of missiles is disabled...
Definition: weaponController.h:255
Represents the interface between the DtTargetSelectionController and a weapon system.
Definition: weaponComponentInterface.h:21
DtWeaponControllerDescriptor; descriptor for the DtWeaponController component.
Definition: weaponControllerDescriptor.h:25