VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 DtString 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 
65 protected:
66 
68  virtual void setDestroyed();
69 
71  virtual void setRadio(DtSimRadio * radio);
72 
78  virtual double undamagedFraction(const DtDamageState damageLevel) const;
79 
83  virtual DtDamageState damageFromFraction(const double fraction) const;
84 
87 
90 
93  const DtDisaggregatedDamageActuator& orig);
94 
95 };
96 

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)