VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
humanDamagePSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
9 #include <readerWriter/rwReal.h>
10 #include <readerWriter/rwString.h>
11 #include <vrfutil/rwTemplatedMap.h>
12 
14 
16 
18 {
19 public:
20 
22  DtHumanDamagePSR(DtVrfObject* vrfObject,
23  const DtString& rwName = DtString::nullString(),
24  DtReaderWriterRegistry* parentRegistry = 0);
25 
28  const DtString& rwName = DtString::nullString(),
29  DtReaderWriterRegistry* parentRegistry = 0);
30 
32  virtual ~DtHumanDamagePSR();
33 
36 
39  const DtString& rwName = DtString::nullString(),
40  DtReaderWriterRegistry* parentRegistry = 0) const;
41 
43  virtual DtString type() const;
44 
46  virtual void setTimeToRecover(double recoverTime);
47  virtual double timeToRecover() const;
48 
50  virtual void addPowerType(const DtRwString & powerType, const double initialLevel = 0);
51 
53  virtual void setPowerLevel(DtString & powerType, const double level);
54  virtual double powerLevel(DtString & powerType);
55 
56  virtual const CumulativePowersMap& cumulativePowersMap() const;
57  virtual CumulativePowersMap& cumulativePowersMap();
58 
60  static DtVrfProcessStateRepository* creator(const DtString& rwName,
61  DtVrfObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
62 
63 protected:
64 
70 };
71 

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)