VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
localEntitySetController.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2021 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
8 
9 #pragma once
10 
12 #include "vrfmodel/setController.h"
15 
16 class DtSimMessage;
17 
27 {
28 
29 public:
30 
34  DtLocalObject* owner,
35  DtSimulationServices* simManager,
36  DtComponentDescriptor* desc = 0,
37  DtReaderWriterRegistry* parentRegistry = 0);
38 
40  virtual ~DtLocalEntitySetController() override;
41 
43  virtual bool init() override;
44 
47  virtual const char* type() const override;
48 
52  virtual void processSetStateProperties(DtSimMessage * msg);
53 
54  virtual void processSetForce(DtSimMessage * msg);
55  virtual void processSetSidc(DtSimMessage* msg);
56  virtual void processSetAppearance(DtSimMessage* msg);
57  virtual void processSetCapabilities(DtSimMessage * msg);
58  virtual void processSetAltitude(DtSimMessage * msg);
59  virtual void processSetResource(DtSimMessage * msg);
60  virtual void processSetSOR(DtSimMessage * msg);
61  virtual void processSetSpeed(DtSimMessage * msg);
62  virtual void processSetCurrentSpeed(DtSimMessage * msg);
63  virtual void processSetEngagementRules(DtSimMessage * msg);
64  virtual void processSetRestore(DtSimMessage * msg);
65  virtual void processSetConcealed(DtSimMessage * msg);
66  virtual void processSetInvisible(DtSimMessage * msg);
67  virtual void processSetAutonomousActionsEnabled(DtSimMessage * msg);
68  virtual void processSetEngagementZones(DtSimMessage* msg);
69  virtual void processSetHideOccupants(DtSimMessage* msg);
70  virtual void processSetSkillLevel(DtSimMessage * msg);
71  virtual void processSetTargetPriorityList(DtSimMessage* msg);
72  virtual void processSetUndetectable(DtSimMessage * msg);
73  virtual void processSetUrgency(DtSimMessage* msg);
74  virtual void processSetPromoteFromClutter(DtSimMessage* msg);
75  virtual void processSetCallsign(DtSimMessage* msg);
76  virtual void processSetJavelinAttackMode(DtSimMessage* msg);
77  virtual void processSetHitZoneStatus(DtSimMessage* msg);
78 
85  virtual void processSetLocation(DtSimMessage * msg);
86 
87  virtual void processSetSuperior(DtSimMessage * msg);
88 
91  virtual void setLocation(DtVector geocentricLocation, bool keepOnGround);
92 
94  virtual void setLocation(DtVector geocentricLocation, int flag, double altAboveTerrain, bool& dataAvailable);
95 
102  virtual void processSetHeading(DtSimMessage * msg);
103 
105  virtual void setHeading(DtReal heading);
106 
109  virtual void tick() override;
110 
114  virtual bool tickWhileDestroyed() const override { return true; }
115 
123  virtual bool createPSR();
124 
126  virtual void isClutterChanged() override;
127 
128 public:
134  static void setStatePropertiesCallback(DtSimMessage * msg, void * usr);
135 
136  static void setHeadingCallback(DtSimMessage * msg, void * usrData);
137 
138  static void setForceCallback(DtSimMessage * msg, void * usrData);
139  static void setLocationCallback(DtSimMessage * msg, void * usrData);
140  static void setSuperiorCallback(DtSimMessage * msg, void * usrData);
141  static void setAppearanceCallback(DtSimMessage* msg, void* usrData);
142  static void setSidcCallback(DtSimMessage* msg, void* usrData);
143  static void setCapabilitiesCallback(DtSimMessage * msg, void * usrData);
144  static void setAltitudeCallback(DtSimMessage * msg, void * usrData);
145  static void setResourceCallback(DtSimMessage * msg, void * usrData);
146  static void setSORCallback(DtSimMessage * msg, void * usrData);
147  static void setSpeedCallback(DtSimMessage * msg, void * usrData);
148  static void setCurrentSpeedCallback(DtSimMessage * msg, void * usrData);
149  static void setEngagementRulesCallback(DtSimMessage * msg, void * usrData);
150  static void setRestoreCallback(DtSimMessage * msg, void * usrData);
151  static void setConcealedCallback(DtSimMessage * msg, void * usrData);
152  static void setInvisibleCallback(DtSimMessage * msg, void * usrData);
153  static void setAutonomousActionsEnabledCallback(DtSimMessage * msg, void * usrData);
154  static void setEngagementZonesCallback(DtSimMessage * msg, void * usrData);
155  static void setHideOccupantsCallback(DtSimMessage *msg, void* usrData);
156  static void setSkillLevelCallback(DtSimMessage * msg, void * usrData);
157  static void setTargetPriorityListCallback(DtSimMessage * msg, void * usrData);
158  static void setUndetectableCallback(DtSimMessage * msg, void * usrData);
159  static void setUrgencyCallback(DtSimMessage* msg, void* usrData);
160  static void setPromoteFromClutterCallback(DtSimMessage* msg, void* usrData);
161  static void setCallsignCallback(DtSimMessage* msg, void* usrData);
162  static void setJavelinAttackModeCallback(DtSimMessage* msg, void* usrData);
163  static void setHitZoneStatusCallback(DtSimMessage* msg, void* usrData);
164 
168  static DtSimComponent * creator(const DtString& name,
169  DtLocalObject* owner,
170  DtSimulationServices* simManager,
171  DtComponentDescriptor* desc = 0,
172  DtReaderWriterRegistry* parentRegistry = 0);
173 
174 protected:
178 
181 
185 
186 
187 protected:
189  virtual void initializeSetsToRegister();
190  virtual void checkReorgDueToForceChange();
191 
192 protected:
199 };
200 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtLocalEntitySetControllerPSR * myProcessState
Container for state data associated with this component. This state is saved and restored as part of ...
Definition: localEntitySetController.h:195
virtual bool tickWhileDestroyed() const override
Tick while destroyed so that sets that do some processing during tick can be resolved while the entit...
Definition: localEntitySetController.h:114
class DtLocalEntitySetControllerPSR:
Definition: localEntitySetControllerPSR.h:24
int myCheckReorgDueToForceChange
Definition: localEntitySetController.h:198
const DtSetController & operator=(const DtSetController &orig)
assignment operator; not implemented
bool myWarnedLocationOnce
Definition: localEntitySetController.h:197
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 const char * type() const override=0
This returns a string from compTypes.h, and identifies the type of component.
Definition: readerWriterRegistry.h:39
virtual bool init() override
Calls setRadio()
DtMovementLocalObjectFacade myMovementLocalObjectFacade
Definition: localEntitySetController.h:196
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 frame...
This class will define a basic set controller that will allow for adding sets of that can be register...
Definition: setController.h:21
virtual void isClutterChanged()
Called when the is-clutter setting changes.
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
void processSetLocation(DtSetDataRequest *set, const DtVertexList &vertices, double position, DtMoveAlongRouteTimeEstimator *est)
void processSetCurrentSpeed(DtSetDataRequest *set, const DtVertexList &vertices, double position, DtMoveAlongRouteTimeEstimator *est)
A locally simulated VRF object.
Definition: localObject.h:98
DtLocalEntitySetController is a controller that handles all DtSetDataRequest messages for an entity a...
Definition: localEntitySetController.h:26

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)