VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
aggregatedSetController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 
12 #pragma once
13 
15 #include "vrfobjcore/simRadio.h"
17 #include "vrftasks/simTask.h"
19 
21 class DtFormation;
22 class DtAggregatedResolutionPSR;
24 
31 {
32 
33 public:
34 
38  DtLocalObject* owner,
39  DtSimulationServices* simManager,
40  DtComponentDescriptor* desc = 0,
41  DtReaderWriterRegistry* parentRegistry = 0);
42 
44  virtual ~DtAggregatedSetController();
45 
46  virtual void processSetTrueAggregateTaskNotify(const DtSimTask & task);
47 
50  virtual void enable();
51 
52  virtual bool postAddComponentsInit();
53 
54 public:
55 
61  static void setEngagementResultsCallback(DtSimMessage * msg, void * usr);
62 
63  static void setTrueAggregateTaskNotifyCallback(
64  const DtSimTask & task, const DtSimComponent &notifier, void* usr);
65 
71  static void setFormationCallback(DtSimMessage * msg, void * usr);
72 
78  static void setResupplyModeCallback(DtSimMessage * msg, void * usr);
79 
85  static void setInvulnerableCallback(DtSimMessage* msg, void * usrData);
86 
92  static void setUndetectableCallback(DtSimMessage* msg, void * usrData);
93 
97  static DtSimComponent * creator(const DtString& name,
98  DtLocalObject* owner,
99  DtSimulationServices* simManager,
100  DtComponentDescriptor* desc = 0,
101  DtReaderWriterRegistry* parentRegistry = 0);
102 
104  virtual void tick();
105 
106  virtual void setIsEnabled(bool yesNo);
107 
108 private:
112 
115 
117  const DtAggregatedSetController & operator=(const
119 
120 
121 protected:
122 
126  virtual void processSetFormation(DtSimMessage * msg);
127 
131  virtual void processSetEngagementResults(DtSimMessage * msg);
132 
136  virtual void processSetResupplyMode(DtSimMessage * msg);
137 
141  virtual void processSetStateProperties(DtSimMessage * msg);
142 
146  virtual void processSetInvulnerable(DtSimMessage * msg);
147 
151  virtual void processSetUndetectable(DtSimMessage * msg);
152 
153  virtual bool getFormation(const DtString& formationName,
154  const DtAggregateObjectParameters& parameterEntry, DtFormation& formation);
155 
156  virtual void updateBoundingGeometry();
157 
159  virtual void initializeSetsToRegister();
160 
162  virtual void setRadio(DtSimRadio * radio);
163 
164 protected:
165 
167 
169 };
170 
171 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
Contains the DtLocalEntitySetController class declaration.
Definition: simRadio.h:30
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
virtual void setIsEnabled(bool yesNo)
Is this component enabled or not. If enabled, component's tick function will be called, otherwise it will not. Default is true (enabled).
virtual void processSetStateProperties(DtSimMessage *msg)
Handler for setStatePropertiesCallback().
static void setUndetectableCallback(DtSimMessage *msg, void *usrData)
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
Instances of DtFormation are a list of DtFormationEntry objects which make up an aggregate formation...
Definition: formation.h:22
DtAggregatedSetController is a controller that handles new DtSetTrueAggregateMode. It replaces the existing DtControllerComponent.
Definition: aggregatedSetController.h:30
File: simMsg.h.
Definition: simMessage.h:35
const DtSimTask * mySimTask
Definition: aggregatedSetController.h:166
virtual void tick()
Checks the #myPendingSetLocationRequest and if the terrain is available the location in #myPendingSet...
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
DtSimTask is an abstract base class from which real tasks can derive. It manages the read/write capab...
Definition: simTask.h:30
virtual void enable()
Is this component enabled or not. If enabled, component's tick function will be called, otherwise it will not. Default is true (enabled).
virtual void setRadio(DtSimRadio *radio)
Override to add set data callbacks.
Definition: vrfAggregateStateRepository.h:20
Contains the set of readable/writeable parameters associated with a pseudo-aggregate entities...
Definition: aggregateObjectParameters.h:29
virtual void processSetUndetectable(DtSimMessage *msg)
virtual bool postAddComponentsInit()
Calls enableTaskTypes()
const DtLocalEntitySetController & operator=(const DtLocalEntitySetController &orig)
assignment operator
virtual void initializeSetsToRegister()
Sets up the myRegisterSets map with sets to register for this controller.
DtAggregateLocalObjectFacade myAggregateLocalObjectFacade
Definition: aggregatedSetController.h:168
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
DtLocalEntitySetController is a controller that handles all DtSetDataRequest messages for an entity a...
Definition: localEntitySetController.h:26

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)