VR-Forces 4.7 Class Documentation
 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"
16 #include "vrftasks/simTask.h"
18 
20 class DtFormation;
23 
30 {
31 
32 public:
33 
37  DtVrfObject* owner,
38  DtSimManager* simManager,
39  DtComponentDescriptor* desc = 0,
40  DtReaderWriterRegistry* parentRegistry = 0);
41 
43  virtual ~DtAggregatedSetController();
44 
45  virtual void processSetTrueAggregateTaskNotify(const DtSimTask & task);
46 
49  virtual void enable();
50 
51  virtual bool postAddComponentsInit();
52 
53 public:
54 
60  static void setEngagementResultsCallback(DtSimMessage * msg, void * usr);
61 
62  static void setTrueAggregateTaskNotifyCallback(
63  const DtSimTask & task, const DtSimComponent &notifier, void* usr);
64 
70  static void setFormationCallback(DtSimMessage * msg, void * usr);
71 
77  static void setResupplyModeCallback(DtSimMessage * msg, void * usr);
78 
84  static void setInvulnerableCallback(DtSimMessage* msg, void * usrData);
85 
89  static DtSimComponent * creator(const DtString& name,
90  DtVrfObject* owner,
91  DtSimManager* simManager,
92  DtComponentDescriptor* desc = 0,
93  DtReaderWriterRegistry* parentRegistry = 0);
94 
96  virtual void tick();
97 
98  virtual void setIsEnabled(bool yesNo);
99 
100 private:
104 
107 
109  const DtAggregatedSetController & operator=(const
111 
112 
113 protected:
114 
118  virtual void processSetFormation(DtSimMessage * msg);
119 
123  virtual void processSetEngagementResults(DtSimMessage * msg);
124 
128  virtual void processSetResupplyMode(DtSimMessage * msg);
129 
133  virtual void processSetStateProperties(DtSimMessage * msg);
134 
138  virtual void processSetInvulnerable(DtSimMessage * msg);
139 
140  virtual bool getFormation(const DtString& formationName,
141  const DtAggregateObjectParameters& parameterEntry, DtFormation& formation);
142 
143  virtual void updateBoundingGeometry();
144 
152  virtual void lookupAndCacheProcessSR();
153 
155  virtual void initializeSetsToRegister();
156 
158  virtual void setRadio(DtSimRadio * radio);
159 
160 protected:
161 
163 
165 
172 };
173 
174 

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)