VR-Forces 4.6 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 
52  virtual void disable();
53 
55  virtual bool init();
56 
57  virtual bool postAddComponentsInit();
58 
60  virtual void addSetDataCallbacks();
61 
62 public:
63 
69  static void setEngagementResultsCallback(DtSimMessage * msg, void * usr);
70 
71  static void setTrueAggregateTaskNotifyCallback(
72  const DtSimTask & task, const DtSimComponent &notifier, void* usr);
73 
79  static void setStatePropertiesCallback(DtSimMessage * msg, void * usr);
80 
86  static void setFormationCallback(DtSimMessage * msg, void * usr);
87 
93  static void setResupplyModeCallback(DtSimMessage * msg, void * usr);
94 
100  static void setAiEnabledCallback(DtSimMessage* msg, void * usrData);
101 
107  static void setInvulnerableCallback(DtSimMessage* msg, void * usrData);
108 
112  static DtSimComponent * creator(const DtString& name,
113  DtVrfObject* owner,
114  DtSimManager* simManager,
115  DtComponentDescriptor* desc = 0,
116  DtReaderWriterRegistry* parentRegistry = 0);
117 
119  virtual void tick();
120 
121  virtual void setIsEnabled(bool yesNo);
122 
123 private:
127 
130 
132  const DtAggregatedSetController & operator=(const
134 
135 
136 protected:
138  virtual void setRadio(DtSimRadio * radio);
139 
142  void removeSetDataCallbacks();
143 
147  virtual void processSetFormation(DtSimMessage * msg);
148 
152  virtual void processSetEngagementResults(DtSimMessage * msg);
153 
157  virtual void processSetResupplyMode(DtSimMessage * msg);
158 
162  virtual void processSetStateProperties(DtSimMessage * msg);
163 
167  virtual void processSetAiEnabled(DtSimMessage * msg);
168 
172  virtual void processSetInvulnerable(DtSimMessage * msg);
173 
174  virtual bool getFormation(const DtString& formationName,
175  const DtAggregateObjectParameters& parameterEntry, DtFormation& formation);
176 
177  virtual void updateBoundingGeometry();
178 
186  virtual void lookupAndCacheProcessSR();
187 
188 protected:
189 
191 
193 
200 };
201 
202 

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)