VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrfobjcore
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
8
#include <
vrfobjcore/damageAdjudicationPSR.h
>
9
#include <
readerWriter/rwReal.h
>
10
#include <
readerWriter/rwString.h
>
11
#include <
vrfutil/rwTemplatedMap.h
>
12
13
#include "
vrfobjcore/vrfobjcoreDefines.h
"
14
15
typedef
DtRwTemplatedMapPtr<DtRwString, DtRwReal>
CumulativePowersMap
;
16
17
class
DT_DLL_vrfobjcore
DtHumanDamagePSR
:
public
DtDamageAdjudicationPSR
18
{
19
public
:
20
22
DtHumanDamagePSR
(
DtVrfObject
* vrfObject,
23
const
DtString
& rwName = DtString::nullString(),
24
DtReaderWriterRegistry
* parentRegistry = 0);
25
27
DtHumanDamagePSR
(
const
DtHumanDamagePSR
& orig,
28
const
DtString
& rwName = DtString::nullString(),
29
DtReaderWriterRegistry
* parentRegistry = 0);
30
32
virtual
~
DtHumanDamagePSR
();
33
35
DtHumanDamagePSR
&
operator=
(
const
DtHumanDamagePSR
& orig);
36
38
virtual
DtVrfProcessStateRepository
*
clone
(
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
66
CumulativePowersMap
myCumulativePowersMap
;
69
DtRwReal
myTimeToRecover
;
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
)