VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
disaggregatedDamageActuator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2002 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 
9 
11 
12 #pragma once
13 
16 
17 class DtSimMessage;
18 class DtSimRadio;
19 
22 #define DISAGGDMG_LIFEFORM_VALUE 0.1
23 
30 {
31 public:
32 
36  DtVrfObject* owner,
37  DtSimManager* simManager,
38  DtComponentDescriptor* desc = 0,
39  DtReaderWriterRegistry* parentRegistry = 0);
40 
43 
46  virtual const char* type() const;
47 
51  virtual void tick();
52 
56  static DtSimComponent * creator(const DtString& name,
57  DtVrfObject* owner,
58  DtSimManager* simManager,
59  DtComponentDescriptor* desc = 0,
60  DtReaderWriterRegistry* parentRegistry = 0);
61 
63  static void setDestroyedCallback(DtSimMessage * msg, void * usrData);
64 
66  static void setFunctionDamageStatusCallback(DtSimMessage * msg, void * usrData);
67 
68 protected:
69 
71  virtual void setDestroyed();
72 
74  virtual void processSetFunctionDamageStatus(DtSimMessage* msg);
75 
77  virtual void setRadio(DtSimRadio * radio);
78 
84  virtual double undamagedFraction(const DtDamageState damageLevel) const;
85 
89  virtual DtDamageState damageFromFraction(const double fraction) const;
90 
93 
96 
99  const DtDisaggregatedDamageActuator& orig);
100 
101 };
102 
#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
class DtSimRadio:
Definition: simRadio.h:25
const DtActuatorComponent & operator=(const DtActuatorComponent &orig)
assignment operator
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
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 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
DtPseudoAggregateDamageActuator models damage of an aggregate entity.
Definition: disaggregatedDamageActuator.h:29
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)