Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
StomachItem Class Reference

Protected Member Functions

void StomachItem (string class_name, float amount, NutritionalProfile profile, int foodstage, int agents, float temperature)
void AddAgents (int agents)
void AddAmount (float amount)
void AddTemperature (float temperature, float fraction)
float GetAmount ()
string GetClassName ()
int GetFoodStage ()
float GetNutritions (float digestion_points, NutritionalProfile profile, out float water, out float energy, out float toxicity)
float GetTemperature ()
bool ProcessDigestion (float digestion_points, out float water, out float energy, out float toxicity, out float volume, out int agents, out float consumed_amount)
void SetFoodStage (int food_stage)

Protected Attributes

float m_Temperature

Private Attributes

int m_Agents
float m_Amount
string m_ClassName
int m_FoodStage
ref NutritionalProfile m_Profile

Detailed Description

Definition at line 1 of file playerstomach.c.

Constructor & Destructor Documentation

◆ StomachItem()

void StomachItem ( string class_name,
float amount,
NutritionalProfile profile,
int foodstage,
int agents,
float temperature )
inlineprotected

Definition at line 11 of file playerstomach.c.

References class_name, m_Agents, m_Amount, m_ClassName, m_FoodStage, m_Profile, and m_Temperature.

Member Function Documentation

◆ AddAgents()

void AddAgents ( int agents)
inlineprotected

Definition at line 60 of file playerstomach.c.

References m_Agents.

Referenced by AddToStomach().

◆ AddAmount()

void AddAmount ( float amount)
inlineprotected

Definition at line 55 of file playerstomach.c.

References m_Amount.

Referenced by AddToStomach().

◆ AddTemperature()

void AddTemperature ( float temperature,
float fraction )
inlineprotected

Definition at line 71 of file playerstomach.c.

References m_Temperature.

Referenced by AddToStomach().

◆ GetAmount()

float GetAmount ( )
inlineprotected

Definition at line 49 of file playerstomach.c.

References m_Amount.

◆ GetClassName()

string GetClassName ( )
inlineprotected

Definition at line 22 of file playerstomach.c.

References m_ClassName.

Referenced by AddToStomach().

◆ GetFoodStage()

int GetFoodStage ( )
inlineprotected

Definition at line 38 of file playerstomach.c.

References m_FoodStage.

Referenced by AddToStomach().

◆ GetNutritions()

float GetNutritions ( float digestion_points,
NutritionalProfile profile,
out float water,
out float energy,
out float toxicity )
inlineprotected

◆ GetTemperature()

float GetTemperature ( )
inlineprotected

Definition at line 65 of file playerstomach.c.

References m_Temperature.

Referenced by OnStoreSave(), and UpdateStomachTemperature().

◆ ProcessDigestion()

bool ProcessDigestion ( float digestion_points,
out float water,
out float energy,
out float toxicity,
out float volume,
out int agents,
out float consumed_amount )
inlineprotected

Definition at line 81 of file playerstomach.c.

References GetNutritions(), m_Agents, m_Amount, and m_Profile.

Referenced by ProcessNutrients().

◆ SetFoodStage()

void SetFoodStage ( int food_stage)
inlineprotected

Definition at line 43 of file playerstomach.c.

References m_FoodStage.

Field Documentation

◆ m_Agents

int m_Agents
private

◆ m_Amount

float m_Amount
private

◆ m_ClassName

string m_ClassName
private

Definition at line 7 of file playerstomach.c.

Referenced by StomachItem(), GetClassName(), and OnStoreSave().

◆ m_FoodStage

int m_FoodStage
private

Definition at line 5 of file playerstomach.c.

Referenced by StomachItem(), GetFoodStage(), OnStoreSave(), and SetFoodStage().

◆ m_Profile

ref NutritionalProfile m_Profile
private

Definition at line 3 of file playerstomach.c.

Referenced by StomachItem(), ProcessDigestion(), and ProcessNutrients().

◆ m_Temperature

float m_Temperature
protected

Definition at line 9 of file playerstomach.c.

Referenced by StomachItem(), AddTemperature(), and GetTemperature().


The documentation for this class was generated from the following file: