DayZ
1.24
Loading...
Searching...
No Matches
NutritionalProfile.c
Go to the documentation of this file.
1
class
NutritionalProfile
2
{
3
float
m_Energy
;
4
float
m_WaterContent
;
5
float
m_NutritionalIndex
;
6
float
m_FullnessIndex
;
7
float
m_Toxicity
;
8
int
m_LiquidType
;
9
int
m_Agents
;
10
string
m_LiquidClassname
;
11
float
m_Digestibility
;
12
13
void
NutritionalProfile
(
float
energy
,
float
water_content
,
float
nutritional_index
,
float
fullness_index
,
float
toxicity
,
int
agents
,
float
digestibility
)
14
{
15
m_Energy
=
energy
;
16
m_WaterContent
=
water_content
;
17
m_NutritionalIndex
=
nutritional_index
;
18
m_FullnessIndex
=
fullness_index
;
19
m_Toxicity
=
toxicity
;
20
m_Agents
=
agents
;
21
m_Digestibility
=
digestibility
;
22
}
23
24
void
MarkAsLiquid
(
int
liquid_type
,
string
classname
)
25
{
26
m_LiquidType
=
liquid_type
;
27
m_LiquidClassname
=
classname
;
28
}
29
30
int
GetAgents
()
31
{
32
return
m_Agents
;
33
}
34
35
int
GetLiquidType
()
36
{
37
return
m_LiquidType
;
38
}
39
40
string
GetLiquidClassname
()
41
{
42
return
m_LiquidClassname
;
43
}
44
45
bool
IsLiquid
()
46
{
47
return
(
m_LiquidType
> 0);
48
}
49
50
float
GetEnergy
()
51
{
52
return
m_Energy
;
53
}
54
55
float
GetWaterContent
()
56
{
57
return
m_WaterContent
;
58
}
59
60
float
GetNutritionalIndex
()
61
{
62
return
m_NutritionalIndex
;
63
}
64
65
float
GetFullnessIndex
()
66
{
67
return
m_FullnessIndex
;
68
}
69
70
float
GetToxicity
()
71
{
72
return
m_Toxicity
;
73
}
74
75
float
GetDigestibility
()
76
{
77
return
m_Digestibility
;
78
}
79
}
NutritionalProfile
Definition
NutritionalProfile.c:2
NutritionalProfile::m_Digestibility
float m_Digestibility
Definition
NutritionalProfile.c:11
NutritionalProfile::m_LiquidType
int m_LiquidType
Definition
NutritionalProfile.c:8
NutritionalProfile::MarkAsLiquid
void MarkAsLiquid(int liquid_type, string classname)
Definition
NutritionalProfile.c:24
NutritionalProfile::GetNutritionalIndex
float GetNutritionalIndex()
Definition
NutritionalProfile.c:60
NutritionalProfile::IsLiquid
bool IsLiquid()
Definition
NutritionalProfile.c:45
NutritionalProfile::m_WaterContent
float m_WaterContent
Definition
NutritionalProfile.c:4
NutritionalProfile::m_LiquidClassname
string m_LiquidClassname
Definition
NutritionalProfile.c:10
NutritionalProfile::m_FullnessIndex
float m_FullnessIndex
Definition
NutritionalProfile.c:6
NutritionalProfile::m_Toxicity
float m_Toxicity
Definition
NutritionalProfile.c:7
NutritionalProfile::m_Energy
float m_Energy
Definition
NutritionalProfile.c:3
NutritionalProfile::GetDigestibility
float GetDigestibility()
Definition
NutritionalProfile.c:75
NutritionalProfile::NutritionalProfile
void NutritionalProfile(float energy, float water_content, float nutritional_index, float fullness_index, float toxicity, int agents, float digestibility)
Definition
NutritionalProfile.c:13
NutritionalProfile::GetWaterContent
float GetWaterContent()
Definition
NutritionalProfile.c:55
NutritionalProfile::m_Agents
int m_Agents
Definition
NutritionalProfile.c:9
NutritionalProfile::GetAgents
int GetAgents()
Definition
NutritionalProfile.c:30
NutritionalProfile::GetFullnessIndex
float GetFullnessIndex()
Definition
NutritionalProfile.c:65
NutritionalProfile::GetEnergy
float GetEnergy()
Definition
NutritionalProfile.c:50
NutritionalProfile::GetLiquidType
int GetLiquidType()
Definition
NutritionalProfile.c:35
NutritionalProfile::GetToxicity
float GetToxicity()
Definition
NutritionalProfile.c:70
NutritionalProfile::m_NutritionalIndex
float m_NutritionalIndex
Definition
NutritionalProfile.c:5
NutritionalProfile::GetLiquidClassname
string GetLiquidClassname()
Definition
NutritionalProfile.c:40
Param3
Definition
EntityAI.c:95
scripts
4_World
Classes
NutritionalProfile.c
Generated by
1.10.0