VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
humanDamageActuator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 #pragma once
11 
13 #include <vl/detonationInteraction.h>
14 
16 
19 class DtHumanDamagePSR;
20 
22 class DtHumanDamagePSR;
23 
24 
35 {
36 
37 public:
38 
41  DtHumanDamageActuator(const DtString& name,
42  DtVrfObject* owner,
43  DtSimManager* simManager,
44  DtComponentDescriptor* desc = 0,
45  DtReaderWriterRegistry* parentRegistry = 0);
46 
49  virtual ~DtHumanDamageActuator();
50 
53  virtual bool createPSR();
54 
55  virtual bool init();
56 
59  virtual const char* type() const;
60 
61  virtual void tick();
62 
66  virtual bool adjudicateDirectDamage(const DtDetonationContext& detonationContext);
67 
71  virtual bool adjudicateCollateralDamage(const DtDetonationContext& detonationContext);
72 
76  static DtSimComponent* creator(const DtString& name,
77  DtVrfObject* owner,
78  DtSimManager* simManager,
79  DtComponentDescriptor* desc = 0,
80  DtReaderWriterRegistry* parentRegistry = 0);
81 
82 protected:
83 
84  virtual void assessImpairment(DtDetonationContext& detonationContext,DtPrbValueList& probabilities, bool direct);
85 
86  virtual void setRestored();
87 
98  virtual DtDamageState isInjured(DtPrbValueList& probabilities) const;
99 
101  virtual DtSymbolString injuredSlightString() const;
103  virtual DtSymbolString injuredModerateString() const;
104 
105 private:
108 
111 
113  const DtHumanDamageActuator& operator=(const
114  DtHumanDamageActuator& orig);
115 
116 protected:
120 
126  DtEventId myCurrentId;
127 
128  std::vector<DtString> myStunnedAnimationList;
129  std::vector<DtString> myProneAnimationList;
130  std::vector<DtString> myDeadAnimationList;
131 };
132 

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)