VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
nonLethalDamageActuator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 
12 #pragma once
13 
15 
17 
22 class DtSimRadio;
24 
35 
38 {
39 
40 public:
41 
45  DtVrfObject* owner,
46  DtSimManager* simManager,
47  DtComponentDescriptor* desc = 0,
48  DtReaderWriterRegistry* parentRegistry = 0);
49 
52  virtual ~DtNonLethalDamageActuator();
53 
60  virtual bool init();
61 
64  virtual bool createPSR();
65 
71  static bool processDetonationCallback(const DtDetonationContext& detonationContext, void* usr);
72 
83  virtual bool processDetonation(const DtDetonationContext& detonationContext);
84 
87  virtual const char* type() const;
88 
89  virtual void tick();
90 
91  static void setDestroyedCallback(DtSimMessage* msg, void* usrData);
92 
93  static void setRestoredCallback(DtSimMessage* msg, void* usrData);
94 
98  static DtSimComponent * creator(const DtString& name,
99  DtVrfObject* owner,
100  DtSimManager* simManager,
101  DtComponentDescriptor* desc = 0,
102  DtReaderWriterRegistry* parentRegistry = 0);
103 
104 protected:
108  virtual void setDestroyed();
109 
112  virtual void setRestored();
113 
117  virtual bool registerForDetonations();
118 
122  virtual bool unregisterForDetonations();
123 
125  virtual void setRadio(DtSimRadio* radio);
126 
128  virtual bool isRegisteredForDetonations() const;
129  virtual void setIsRegisteredForDetonations(const bool r);
130 
131 protected:
134 
136 
137 private:
140 
143 
146 };
147 
148 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtNonLethalDamageActuatorDescriptor is used to specify the parameters for the DtNonLethalDamageActuat...
Definition: nonLethalDamageActuatorDescriptor.h:16
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
DtNonLethalDamageActuatorPSR * myProcessState
Definition: nonLethalDamageActuator.h:133
class DtSimRadio:
Definition: simRadio.h:25
const DtActuatorComponent & operator=(const DtActuatorComponent &orig)
assignment operator
bool myIsRegisteredForDetonations
Definition: nonLethalDamageActuator.h:135
virtual bool init()
Overridden to cache a pointer to the entity's radio in this class.
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
virtual void setRadio(DtSimRadio *radio)
Definition: readerWriterRegistry.h:39
DtNonLethalDamageActuatorDescriptor * myDescriptor
Definition: nonLethalDamageActuator.h:132
End User Description: DtActuator is the base class for all actuator model components.
Definition: actuatorComponent.h:48
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component.
The DtDetonationContext contains all the information necessary for processing a Detonation Interactio...
Definition: detonationContext.h:27
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
class DtPrbValueList;
Definition: nonLethalDamageActuator.h:37
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
Holds data and provides accessors pertinent to non lethal damage actuator.
Definition: nonLethalDamageActuatorPSR.h:17
virtual const char * type() const =0
Returns a string identifies the class type of component.

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)