VR-Forces Developer's Guide
 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 
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  DtLocalObject* 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
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.
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. Process state repositories represent (potentially) shared, savable information for one or more components functioning together to achieve some process or set of processes; such as aiming and firing a weapon; moving an object; or just waiting a specified amount of time.
Definition: vrfProcessStateRepository.h:45
DtRwReal myTimeToRecover
Time to recover from stunned state. Can only recover from that state. Once prone, entity isn&#39;t gettin...
Definition: humanDamagePSR.h:77
DtDamageAdjudicationPSR & operator=(const DtDamageAdjudicationPSR &orig)
Assignment operator.
DtRwTemplatedMapPtr< DtRwString, DtRwReal > CumulativePowersMap
Definition: humanDamagePSR.h:16
static DtVrfProcessStateRepository * creator(const DtString &rwName, DtLocalObject *vrfObject, DtReaderWriterRegistry *parentRegistry)
Returns a newly created instance of this class.
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86
DtRwInt myCurrentDamageState
Previous Damage State. We add this in case some one calls set appearance and changes the damage state...
Definition: humanDamagePSR.h:71

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)