Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
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 
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 }
m_Agents
int m_Agents
Definition: actiongivebloodself.c:4
NutritionalProfile
Definition: nutritionalprofile.c:1