VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
provideIndirectFireController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 
7 #pragma once
8 
11 
14 
19 {
20 private:
21 
24 
27 
30 
31 public:
35  DtLocalObject* owner,
36  DtSimulationServices* simManager,
37  DtComponentDescriptor* desc = 0,
38  DtReaderWriterRegistry* parentRegistry = 0);
39 
42 
45  virtual const char* type() const;
46 
50  static DtSimComponent * creator(const DtString& name,
51  DtLocalObject* owner,
52  DtSimulationServices* simManager,
53  DtComponentDescriptor* desc = 0,
54  DtReaderWriterRegistry* parentRegistry = 0);
55 
56 protected:
57  virtual void preFirstTickInit();
58  virtual void registerTaskMsgCallbacks();
59  virtual void unregisterTaskMsgCallbacks();
60  virtual void disable();
61  virtual void enable();
62 
63  static void taskCompleteReportCallback(DtSimMessage* msg, void* usr);
64  virtual void processTaskComplete(DtSimMessage* msg);
65 
67  static void ProvideIndirectFireTaskCallback(DtSimMessage * msg, void * usr);
68 
70  virtual void processProvideIndirectFireTask(DtSimMessage * msg);
71 
73  virtual void processFFEAtLocation(const DtProvideIndirectFireTask&);
74 
76  virtual void processFFEAtTarget(const DtProvideIndirectFireTask&);
77 
79  virtual void processFFEAtPolarCoordinate(const DtProvideIndirectFireTask&);
80 
83  virtual void processFFEAdjust(const DtProvideIndirectFireTask&);
84 
86  virtual void processFFEKnownTargetPoint(const DtProvideIndirectFireTask&);
87 
89  virtual void processAdjustFromLocation(const DtProvideIndirectFireTask& task, const DtVector& targetPoint);
90 
91  virtual void lookupAndCachePSR();
92 
93 protected:
95 };
96 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtProvideIndirectFireTask.
Definition: provideIndirectFireTask.h:14
DtVrfIndirectFirePSR * myWeaponProcessState
Definition: provideIndirectFireController.h:94
virtual void enable()
Overridden to call registerTaskMsgCallbacks().
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:20
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
virtual const char * type() const =0
Returns a string identifies the class type of component. Type values are defined in compTypes...
File: simMsg.h.
Definition: simMessage.h:35
DtProvideIndirectFireController is responsible for processing the call to fire task.
Definition: provideIndirectFireController.h:18
virtual void disable()
Overridden to allow tasks controllers that can be disabled to call task complete. ...
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
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
File: indirectFirePSR.h.
Definition: vrfIndirectFirePSR.h:30
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)