VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
disaggregatedSetController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 #pragma once
12 
13 #include "vrfmodel/setController.h"
14 
15 class DtSimMessage;
18 class DtFormationState;
19 class DtSetDataRequest;
21 
28 {
29 public:
30 
34  DtVrfObject* owner,
35  DtSimManager* simManager,
36  DtComponentDescriptor* desc = 0,
37  DtReaderWriterRegistry* parentRegistry = 0);
38 
41 
44  virtual const char* type() const;
45 
46  virtual bool init();
47 
48  virtual void tick();
49 
51  static void setForceCallback(DtSimMessage* msg, void* usrData);
52  static void setInvisibleCallback(DtSimMessage* msg, void* usrData);
53  static void setTDLMessagingCallback(DtSimMessage* msg, void* usrData);
54  static void setResourceCallback(DtSimMessage* msg, void* usrData);
55  static void setSORCallback(DtSimMessage* msg, void* usrData);
56  static void setSpeedCallback(DtSimMessage* msg, void* usrData);
57  static void setCurrentSpeedCallback(DtSimMessage* msg, void* usrData);
58  static void setTargetCallback(DtSimMessage* msg, void* usrData);
59  static void setSuperiorCallback(DtSimMessage* msg, void* usrData);
60  static void setEngagementRulesCallback(DtSimMessage* msg, void* usrData);
61  static void setRestoreCallback(DtSimMessage* msg, void* usrData);
62  static void setPostureCallback(DtSimMessage* msg, void* usrData);
63  static void setWeaponStateCallback(DtSimMessage* msg, void* usrData);
64  static void setNotifyLevelCallback(DtSimMessage * msg, void * usrData);
65  static void setAiEnabledCallback(DtSimMessage * msg, void * usrData);
66  static void setInvulnerableCallback(DtSimMessage * msg, void * usrData);
67  static void setUndetectableCallback(DtSimMessage * msg, void * usrData);
68 
72  static DtSimComponent * creator(const DtString& name,
73  DtVrfObject* owner,
74  DtSimManager* simManager,
75  DtComponentDescriptor* desc = 0,
76  DtReaderWriterRegistry* parentRegistry = 0);
77 
78 protected:
79 
80  virtual void processSetResource(DtSimMessage* msg);
81  virtual void processSetForce(DtSimMessage* msg);
82  virtual void processSetInvisible(DtSimMessage* msg);
83  virtual void processSetTDLMessaging(DtSimMessage* msg);
84  virtual void processSetSOR(DtSimMessage* msg);
85  virtual void processSetSpeed(DtSimMessage* msg);
86  virtual void processCurrentSetSpeed(DtSimMessage* msg);
87  virtual void processSetTarget(DtSimMessage* msg);
88  virtual void processSetSuperior(DtSimMessage* msg);
89  virtual void processSetEngagementRules(DtSimMessage* msg);
90  virtual void processSetRestore(DtSimMessage* msg);
91  virtual void processSetPosture(DtSimMessage* msg);
92  virtual void processSetWeaponState(DtSimMessage* msg);
93  virtual void processSetNotifyLevel(DtSimMessage* msg);
94  virtual void processSetAiEnabled(DtSimMessage* msg);
95  virtual void processSetInvulnerable(DtSimMessage* msg);
96  virtual void processSetUndetectable(DtSimMessage* msg);
97 
99  virtual void initializeSetsToRegister();
100 
102  virtual void forwardToSubordinates(DtSetDataRequestMessage* drMsg);
103 
107 
110 
113 
114 protected:
115 
117 };
118 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
Definition: formationState.h:38
virtual bool init()
Calls setRadio()
const DtSetController & operator=(const DtSetController &orig)
assignment operator; not implemented
DtPseudoAggregateSetController is the controller that handles all of the DtSetDataRequest messages fo...
Definition: disaggregatedSetController.h:27
virtual const char * type() const =0
This returns a string from compTypes.h, and identifies the type of component.
DtCompatibilityRadio * myCommandChannelRadio
Definition: disaggregatedSetController.h:116
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
Definition: readerWriterRegistry.h:39
DtSetDataRequest is an abstract base class from which real setDataRequests can derive.
Definition: setDataRequest.h:40
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component.
This class will define a basic set controller that will allow for adding sets of that can be register...
Definition: setController.h:21
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
Definition: vrfAggregateStateRepository.h:22
A DtSetDataRequestMessage is a DtRadioMsg with a pointer to a setDataRequest.
Definition: setDataRequestMessage.h:23
DtCompatibilityRadio.
Definition: compatibilityRadio.h:30

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)