17#include <vreVrfModel/vreSimComponent.h>
21#include <vrfmodel/launchExpendableResourceController.h>
50 DtComponentDescriptor* desc = NULL, DtReaderWriterRegistry* parentRegistry = 0);
62 virtual const char*
type()
const override;
97 virtual void tick()
override;
117 static DtSimComponent*
creator(
const DtString& name, DtLocalObject* owner, DtSimulationServices* simManager,
118 DtComponentDescriptor* desc, DtReaderWriterRegistry* parentRegistry);
int myFlareCount
Current count of available flare countermeasures.
Definition vreLaunchExpendableResourceController.h:149
bool myAutoLaunchEnabled
Flag indicating whether automatic countermeasure launch is enabled.
Definition vreLaunchExpendableResourceController.h:137
int myChaffCount
Current count of available chaff countermeasures.
Definition vreLaunchExpendableResourceController.h:143
DtVreLaunchExpendableResourceController & operator=(const DtVreLaunchExpendableResourceController &orig)
Assignment operator.
virtual const char * type() const override
Gets the type identifier for this component.
virtual DtVreMessageResult handleCmConfigRequest(DtVreMessage *msg)
Handles countermeasure configuration request messages.
virtual void tick() override
Updates the controller state each simulation frame.
DtVreLaunchExpendableResourceController(const DtVreLaunchExpendableResourceController &orig)
Copy constructor.
virtual bool init() override
Initializes the launch expendable resource controller.
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc, DtReaderWriterRegistry *parentRegistry)
Factory method to create a new instance of this component.
DtVreLaunchExpendableResourceController(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=NULL, DtReaderWriterRegistry *parentRegistry=0)
Constructor.
virtual void sendCmUpdate()
Sends countermeasure state update to clients.
virtual DtSimResource * lookupExpendableResource(const DtString &resourceName, int &quantity)
Looks up resources by old resource style name string and converts to entity type.
virtual void preFirstTickInit() override
Performs initialization before the first simulation tick.
virtual ~DtVreLaunchExpendableResourceController() override
Virtual destructor.
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
DtVreSimComponent(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Definition vreSimComponent.h:54
Defines export macros for the vreVrfmodel library.
#define VREVRFMODEL_DLL
Definition export.h:22
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
const char DtVreLaunchExpendableResourceControllerType[]
Type identifier for the VRE launch expendable resource controller component.
Definition vreLaunchExpendableResourceController.h:26
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33
Defines the base class for all VREngage messages.