34 virtual const char*
type()
const override;
37 virtual bool init()
override;
43 virtual void tick()
override;
48 virtual void disable()
override;
63 static void fireAtTargetTaskCallback(
DtSimMessage* msg,
void* usr);
69 static void hostilitiesChangedCallback(DtU8 force,
void* usr);
70 virtual void processHostilitiesChanged(DtU8 force);
78 virtual void setupDetectableForces(DtForceType);
82 static void setTargetCallback(
DtSimMessage* msg,
void* usr);
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual void disable() override
Overridden to allow tasks controllers that can be disabled to call task complete. ...
virtual bool postAddComponentsInit() override
Calls enableTaskTypes()
virtual const char * type() const override=0
Returns a string identifies the class type of component. Type values are defined in compTypes...
virtual void registerTaskMsgCallbacks()
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: singleTaskControllerComponent.h:22
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
DtEntityTypesListOutputPort * myTypesToDetectOutputPort
Output Port Name: target-types-to-detect Output Port Description: List of types of object the target ...
Definition: weaponManagementController.h:93
Definition: readerWriterRegistry.h:39
This controller read info from the weaponInfo state of an entity and manages some of the duties relat...
Definition: weaponManagementController.h:17
virtual bool init() override
Calls setRadio()
virtual void enableTaskTypes()
Finds the script controller, and enables the new task types on that controller. Calls enableScriptedT...
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
virtual bool createPorts()
Called by init. Derived classes should override this method to create all their input/output ports an...
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
DtForceType myForce
Force used to put information onto port for hostility matrix.
Definition: weaponManagementController.h:96
Instances of DtEntityTypesListOutputPort are output ports through which data producers can send a lis...
Definition: objectTypesListIOPort.h:46
A DtTaskMsg is a DtRadioMsg with a pointer to a task. The type of the taskMsg is just the type of the...
Definition: taskMessage.h:21
bool mySetupDetectableForcesRequired
Flag set to true if a re-run of the setupDetectableForces() is required on the next tick...
Definition: weaponManagementController.h:101
A locally simulated VRF object.
Definition: localObject.h:98