VR-Forces 4.7 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 

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)