15 #include <vl/detonationInteraction.h>
17 class DtLauncherControllerDescriptor;
78 virtual const char*
type()
const;
91 virtual bool createMissileIdPort();
94 virtual bool createTargetPointPort();
97 virtual bool createTargetEntityIdPort();
119 virtual void detonationCallback(
const DtEvent& e);
129 virtual void disconnectMissileFromLauncher(
const DtEntityIdentifier& missId);
131 virtual void disconnectMissileFromLauncher(
const DtVrfObject *missile);
134 virtual const DtVrfObject* mostRecentMissileFired();
139 virtual bool missilePassedTarget(
const DtVrfObject* lastMissile,
double& distSquaredToTargetOut);
141 virtual double abandonPassedMissileDistance();
142 virtual void setAbandonPassedMissileDistance(
const double&
distance);
157 static DtReaderWriter* provideMissilePassedTarget(
void* controller);
182 virtual void removeMissileFromActiveList(
const DtEntityIdentifier& removeId);
184 static void deleteVrfObjectCallback(
const DtVrfObject* msg,
void * usr);
185 virtual void processDeleteVrfObject(
const DtVrfObject *msg);
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtVectorOutputPort * myTargetPointPort
Output Port Name: target-point Output Port Description: Local position of the target.
Definition: launcherController.h:227
const DtWeaponController & operator=(const DtWeaponController &orig)
assignment operator; not implemented
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
DtWeaponController is a controller that extends the DtBaseWeaponController with the ability to accept...
Definition: weaponController.h:56
DtList myActiveMissiles
Definition: launcherController.h:203
DtObjectIdOutputPort * myMissileIdPort
Output Port Name: missile-id Output Port Description: Object id of the missile.
Definition: launcherController.h:213
bool myRegisteredRemovedCallback
Definition: launcherController.h:236
Definition: readerWriter.h:85
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
virtual void tick()
If the myWaitingForFire flag is set and the munition loader is still loaded, the weapon has not fired...
Definition: readerWriterRegistry.h:39
virtual void preFirstTickInit()
Starts with weapon loaded, if the weapon has a full complement of ammunition.
DtLauncherController is a controller that accepts input from a target sensor, and provides ammunition...
Definition: launcherController.h:56
DT_DLL_VRVCORE double distance(const makVrv::DtCoordinateSystem &, const DtVector &from, const DtVector &to)
Returns the distance from the two points.
Instances of DtVectorOutputPort are output ports through which data producers can send a DtVector...
Definition: vectorIOPort.h:52
virtual const char * type() const
Returns a string identifies the class type of component.
DtDetonationPdu DtDetonationInteraction
Definition: DistributedSimulationDriver3A.h:14
*array controller(no time code)*/template< class Instance
//!//!//!//!//!//!//!//!//!//!//!//
DtObjectIdOutputPort * myTargetEntityIdPort
Output Port Name: target-entity Output Port Description: Object id of the target. ...
Definition: launcherController.h:220
Instances of DtObjectIdOutputPort are output ports through which data producers can send DtEntityIden...
Definition: objectIdIOPort.h:47
virtual bool init()
Overridden to initialize values obtained from the descriptor.
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
double myAbandonPassedMissileDistance
If the missile passes its target within this distance, it will be abandoned and disconnected from the...
Definition: launcherController.h:234
virtual void registerAttributeFunctions()
Called to register functions that provide system attribute values.
Definition: simComponent.h:151
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
DtIfCreateVrfObject myCreateMissileInfo
Definition: launcherController.h:202
virtual bool createPorts()
Overridden to create the local ports.
static DtSimComponent * creator(const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
virtual void fire()
updates weapon interface
class DtIfCreateVrfObject:
Definition: ifCreateVrfObject.h:84