VR-Forces 4.10 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 <readerWriter//rwInt.h>
12 #include <vrfutil/rwTemplatedMap.h>
13 
15 
17 
19 {
20 public:
21 
23  DtHumanDamagePSR(DtVrfObject* vrfObject,
24  const DtString& rwName = DtString::nullString(),
25  DtReaderWriterRegistry* parentRegistry = 0);
26 
29  const DtString& rwName = DtString::nullString(),
30  DtReaderWriterRegistry* parentRegistry = 0);
31 
33  virtual ~DtHumanDamagePSR();
34 
37 
40  const DtString& rwName = DtString::nullString(),
41  DtReaderWriterRegistry* parentRegistry = 0) const;
42 
44  virtual DtString type() const;
45 
46  virtual void setCurrentDamageState(DtDamageState state);
47  virtual DtDamageState currentDamageState() const;
48 
50  virtual void setTimeToRecover(double recoverTime);
51  virtual double timeToRecover() const;
52 
54  virtual void addPowerType(const DtRwString & powerType, const double initialLevel = 0);
55 
57  virtual void setPowerLevel(DtString & powerType, const double level);
58  virtual double powerLevel(DtString & powerType);
59 
60  virtual const CumulativePowersMap& cumulativePowersMap() const;
61  virtual CumulativePowersMap& cumulativePowersMap();
62 
64  static DtVrfProcessStateRepository* creator(const DtString& rwName,
65  DtVrfObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
66 
67 protected:
72 
78 };
79 
CumulativePowersMap myCumulativePowersMap
Keep track when we save out scenario on current level of health of the entity.
Definition: humanDamagePSR.h:74
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
Holds data and provides accessors pertinent to damage adjudication. E.g. time destroyed.
Definition: damageAdjudicationPSR.h:18
DT_DLL_VRVCORE DtTaitBryan level(const DtCoordinateSystem &cs, const DtVector &localOrigin, double topoHeading)
Returns a level orientation with the topographic heading.
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
Definition: readerWriterRegistry.h:39
virtual DtString type() const
Returns the string type of this process state repository.
static DtVrfProcessStateRepository * creator(const DtString &rwName, DtVrfObject *vrfObject, DtReaderWriterRegistry *parentRegistry)
Returns a newly created instance of this class.
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const
Returns a newly created copy of this object.
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
Description: Readable, Writable int.
Definition: rwInt.h:25
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
Definition: humanDamagePSR.h:18
Class DtVrfProcessStateRepository: Abstract base class for all process state repositories.
Definition: vrfProcessStateRepository.h:43
DtRwReal myTimeToRecover
Time to recover from stunned state.
Definition: humanDamagePSR.h:77
DtDamageAdjudicationPSR & operator=(const DtDamageAdjudicationPSR &orig)
Assignment operator.
DtRwTemplatedMapPtr< DtRwString, DtRwReal > CumulativePowersMap
Definition: humanDamagePSR.h:16
DtRwInt myCurrentDamageState
Previous Damage State.
Definition: humanDamagePSR.h:71

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)