PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
StomachItem Class Reference

Private Member Functions

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

Private Attributes

ref NutritionalProfile m_Profile
 
float m_Amount
 
int m_FoodStage
 
string m_ClassName
 
int m_Agents
 
protected float m_Temperature
 

Constructor & Destructor Documentation

◆ StomachItem()

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

Member Function Documentation

◆ AddAgents()

void AddAgents ( int  agents)
inlineprivate

References m_Agents.

Referenced by AddToStomach().

◆ AddAmount()

void AddAmount ( float  amount)
inlineprivate

References m_Amount.

Referenced by AddToStomach().

◆ AddTemperature()

void AddTemperature ( float  temperature,
float  fraction 
)
inlineprivate

References m_Temperature.

Referenced by AddToStomach().

◆ GetAmount()

float GetAmount ( )
inlineprivate

References m_Amount.

◆ GetClassName()

string GetClassName ( )
inlineprivate

References m_ClassName.

Referenced by AddToStomach().

◆ GetFoodStage()

int GetFoodStage ( )
inlineprivate

References m_FoodStage.

Referenced by AddToStomach().

◆ GetNutritions()

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

◆ GetTemperature()

float GetTemperature ( )
inlineprivate

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 
)
inlineprivate

◆ SetFoodStage()

void SetFoodStage ( int  food_stage)
inlineprivate

References m_FoodStage.

Field Documentation

◆ m_Agents

◆ m_Amount

◆ m_ClassName

string m_ClassName
private

◆ m_FoodStage

int m_FoodStage
private

◆ m_Profile

ref NutritionalProfile m_Profile
private

◆ m_Temperature

protected float m_Temperature
private

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