VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
cruiseMissileLaunchController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2004 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
16 
18 
33 
36 {
37 private:
44 
45 public:
46 
50  DtSimulationServices* simManager, DtComponentDescriptor* compDesc = 0,
51  DtReaderWriterRegistry* parentRegistry = 0);
52 
55 
58  virtual const char* type() const;
59 
61  virtual bool init();
62 
64  virtual void setComponentDescriptor(DtComponentDescriptor *compDesc);
65 
69  virtual void tick();
70 
74  static DtSimComponent * creator(const DtString& name,
75  DtLocalObject* owner,
76  DtSimulationServices* simManager,
77  DtComponentDescriptor* desc = 0,
78  DtReaderWriterRegistry* parentRegistry = 0);
79 
80 protected:
82  virtual void registerTaskMsgCallbacks();
83 
84  virtual void getMunitionResources(std::list<DtString>& resourceList);
85 
88 
91  virtual DtIfPlan createMunitionPlan(const DtUUID& missile);
92 
93  virtual DtUUID getTargetFromTaskMessage(const DtTaskMessage *tm) const;
94 
95 protected:
97 
100 };
101 
class DtIfPlan:
Definition: ifPlan.h:61
UUID is a unique ID wrapper class.
Definition: rwUUID.h:229
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual void tick()
Tick Function. When the component has a launch munition task and at least the minimum-time-between-la...
DtCruiseMissileLaunchController models launch of a cruise missile.
Definition: cruiseMissileLaunchController.h:35
virtual const char * type() const
Returns a string identifies the class type of component. Type values are defined in compTypes...
DtIndirectWeaponComponentInterface * myWeaponComponentInterface
Definition: cruiseMissileLaunchController.h:96
virtual void registerTaskMsgCallbacks()
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
virtual DtIfPlan createMunitionPlan(const DtUUID &munition)
Creates a new plan for the munition using the task saved in this controller. In this base munition la...
Definition: readerWriterRegistry.h:39
The DtLocalObjectCreateInformation class is a subset of the information used in the DtIfCreateVrfObje...
Definition: vrfLocalObjectCreateInformation.h:26
DtPlatformLocalObjectFacade myPlatformLocalObjectFacade
Member to allow for access to platform specific data.
Definition: cruiseMissileLaunchController.h:99
DtMunitionLaunchController models launch of a munition.
Definition: munitionLaunchController.h:48
virtual DtUUID getTargetFromTaskMessage(const DtTaskMessage *tm) const
Gets the target name from the task message. Used in createAndSend FireInteraction. Can be different for classes that override this one, if their task messages are different.
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:90
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
Represents the interface between the DtIndirectFireController and an indirect fire weapon system...
Definition: indirectWeaponComponentInterface.h:24
virtual bool init()
Initialize the component. Calls createPSR() and registerRadioMessageCallbacks()
virtual void setComponentDescriptor(DtComponentDescriptor *compDesc)
Overridden to get the specialized DtMunitionLaunchControllerDescriptor.
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
DtMunitionLaunchController & operator=(const DtMunitionLaunchController &orig)
Not implemented.
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
virtual DtSetWarheadInfo createWarheadInfo(DtVrfLocalObjectCreateInformation &info, const DtString &eventId) const
Sets parameters of the warhead in a SetDataRequestMessage. In this base munition launcher, the only information that is set is attacker, event ID, the warhead type and fuze type. The latter two come from the controller descriptor. Derived launchers can override this function to set different parameters. Also, other controllers and scripts can send additional set-warhead-info messages to the munition to change the warhead info.
File: setWarheadInfo.h.
Definition: setWarheadInfo.h:40
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)