Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
nutritionalprofile.c
Go to the documentation of this file.
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 float m_AgentsPerDigest;
13
15 void NutritionalProfile(float energy = 0.0, float water_content = 0.0, float nutritional_index = 0.0, float fullness_index = 0.0, float toxicity = 0.0, int agents = 0.0, float digestibility = 0.0)
16 {
17 m_Energy = energy;
18 m_WaterContent = water_content;
19 m_NutritionalIndex = nutritional_index;
20 m_FullnessIndex = fullness_index;
21 m_Toxicity = toxicity;
22 m_Agents = agents;
23 m_Digestibility = digestibility;
24 }
25
26 void MarkAsLiquid(int liquid_type, string classname)
27 {
28 m_LiquidType = liquid_type;
29 m_LiquidClassname = classname;
30 }
31
32 int GetAgents()
33 {
34 return m_Agents;
35 }
36
37 int GetLiquidType()
38 {
39 return m_LiquidType;
40 }
41
42 string GetLiquidClassname()
43 {
44 return m_LiquidClassname;
45 }
46
47 bool IsLiquid()
48 {
49 return (m_LiquidType > 0);
50 }
51
52 float GetEnergy()
53 {
54 return m_Energy;
55 }
56
57 float GetWaterContent()
58 {
59 return m_WaterContent;
60 }
61
62 float GetNutritionalIndex()
63 {
64 return m_NutritionalIndex;
65 }
66
67 float GetFullnessIndex()
68 {
69 return m_FullnessIndex;
70 }
71
72 float GetToxicity()
73 {
74 return m_Toxicity;
75 }
76
77 float GetDigestibility()
78 {
79 return m_Digestibility;
80 }
81}
int m_Agents
int m_LiquidType
Definition environment.c:61