58 virtual bool init()
override;
62 virtual const char*
type()
const override;
97 virtual bool shouldHitTarget(
const DtVector& localStartPosition,
98 const DtVector& localTargetPosition,
const DtVector& localInitialVelocity,
103 virtual bool useHitProbability(
const DtSimObject* targetObject)
const;
105 virtual const DtString& probabilityString()
const;
DtVectorInputPort * myTargetPointPort
Input Port Name: target-point Input Port Description: Local position of the target. Input Port Range: Input Port Default Value: Input Group Parent: weapon-control.
Definition: launcherActuator.h:152
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtLauncherActuator is a simple model of a missile launcher.
Definition: launcherActuator.h:40
Handle returned from Create Object Service calls.
Definition: createObjectHandle.h:12
virtual bool init() override
to get access to the entity's localStateRepository, which this component will update, and then connect to the controller's ports. Calls createPSR() to creat e
Definition: fireEvent.h:16
DtIntegerInputPort * myMunitionBinPort
Input Port Name: munition-bin Input Port Description: Resource bin the munition can be found int...
Definition: launcherActuator.h:138
const DtWeaponActuator & operator=(const DtWeaponActuator &orig)
assignment operator; not implemented
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
DtMissileLauncherActuatorDescriptor * myMissileLauncherDesc
Definition: launcherActuator.h:121
virtual const char * type() const override
Returns a string identifies the class type of component. Type values are defined in compTypes...
DtWeaponActuator is a simple model of a ballistic gun.
Definition: weaponActuator.h:54
virtual void fireTheWeapon()
Calls createFireInteraction() and sends the resulting makVrfEvents::DtFireEvent through the exercise ...
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
DtStringInputPort * myTargetEntityIdPort
Input Port Name: target-entity Input Port Description: Object id of the target. Input Port Range: In...
Definition: launcherActuator.h:145
virtual makVrfEvents::DtFireEvent * createFireInteraction()
Creates and fills out a makVrfEvents::DtFireEvent. Returns a makVrfEvents::DtFireEvent.
DtStringInputPort * myMissileIdPort
Input Port Name: missile-id Input Port Description: Object id of the missile. Input Port Range: Inpu...
Definition: launcherActuator.h:131
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:97
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
static bool myDetonationCbackRegistered
Flag for indicating whether the detonation callback for munitions has been registered.
Definition: launcherActuator.h:158
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:80
DtMissileLauncherActuatorDescriptor; descriptor for the DtLauncherActuator component.
Definition: missileLauncherActuatorDescriptor.h:21
virtual bool createPorts() override
Creates the input ports and adds them to the component.
DtVector myCurrentTargetPoint
Hold either the position when the target is a location or the target hit zone offset when the target ...
Definition: launcherActuator.h:162
A locally simulated VRF object.
Definition: localObject.h:98