Data Structures | |
| class | StomachItem |
Variables | |
| class StomachItem | DIGESTING_WATER = 1 |
| const int | DIGESTING_ENERGY = 2 |
| const int | quantity_bit_offset = 16 |
| const int | id_bit_offset = 4 |
| static int | CHECKSUM |
| const float | DIGESTION_POINTS = PlayerConstants.DIGESTION_SPEED |
| const int | ACCEPTABLE_QUANTITY_MAX = 32768 |
| const int | ACCEPTABLE_FOODSTAGE_MAX = FoodStageType.COUNT - 1 |
| static ref map< string, int > | m_NamesToIDs = new map<string, int> |
| static ref map< int, string > | m_IDsToNames = new map<int, string> |
| static const bool | m_InitData = PlayerStomach.InitData() |
| ref array< ref StomachItem > | m_StomachContents = new array<ref StomachItem> |
| int | m_AgentTransferFilter |
| bool | m_Digesting |
| int | m_DigestingType |
| PlayerBase | m_Player |
| float | m_StomachVolume |
| protected float | m_StomachTemperature |
| const int | STORAGE_VERSION = 106 |
| void AddToStomach | ( | string | class_name, |
| float | amount, | ||
| int | food_stage = 0, |
||
| int | agents = 0, |
||
| float | temperature = 0 |
||
| ) |
References ACCEPTABLE_FOODSTAGE_MAX, ACCEPTABLE_QUANTITY_MAX, StomachItem::AddAgents(), StomachItem::AddAmount(), StomachItem::AddTemperature(), class_name, NutritionalProfile::GetAgents(), StomachItem::GetClassName(), StomachItem::GetFoodStage(), GetIDFromClassname(), Edible_Base::GetNutritionalProfile(), NutritionalProfile::IsLiquid(), StomachItem::m_Agents, StomachItem::m_Amount, m_StomachContents, and UpdateStomachTemperature().
Referenced by OnStoreLoad().
| void ClearContents | ( | ) |
References m_StomachContents, m_StomachTemperature, and m_StomachVolume.
| int GetAgentTransferFilter | ( | ) |
References m_AgentTransferFilter.
References m_IDsToNames.
Referenced by OnStoreLoad().
References m_StomachContents, m_StomachTemperature, m_StomachVolume, and PlayerStomach().
| int GetDigestingType | ( | ) |
References m_DigestingType.
References m_NamesToIDs, and name.
Referenced by AddToStomach().
| float GetStomachTemperature | ( | ) |
References m_StomachTemperature.
| float GetStomachVolume | ( | ) |
References m_StomachVolume.
Referenced by GetVolumeContainingAgent01().
| int GetStorageVersion | ( | ) |
References STORAGE_VERSION.
References m_StomachContents.
Referenced by GetVolumeContainingAgent01().
References GetStomachVolume(), GetVolumeContainingAgent(), and Math::InverseLerp().
|
static |
| bool IsDigesting | ( | ) |
References m_DigestingType.
| bool OnStoreLoad | ( | ParamsReadContext | ctx, |
| int | version | ||
| ) |
References AddToStomach(), CHECKSUM, GetClassnameFromID(), id_bit_offset, Math::Pow(), Print(), quantity_bit_offset, and Serializer::Read().
| void OnStoreSave | ( | ParamsWriteContext | ctx | ) |
| void PlayerStomach | ( | PlayerBase | player | ) |
References m_Player.
Referenced by GetDebugObject(), ManBase::Init(), OnStoreSave(), HungerMdfr::OnTick(), ThirstMdfr::OnTick(), and HudDebugWinBase::SetContentValues().
| void PrintUpdate | ( | ) |
References m_StomachContents, m_StomachVolume, and Print().
| void ProcessNutrients | ( | float | delta_time | ) |
try amount from nutritions/food stage first
food poisoning specific override by bloody hands
References PlayerConstants::BLOODY_HANDS_FOOD_POISON_AGENT_INCREMENT, DigestAgents(), DIGESTING_ENERGY, DIGESTING_WATER, DIGESTION_POINTS, StomachItem::m_Agents, NutritionalProfile::m_AgentsPerDigest, m_DigestingType, m_Player, StomachItem::m_Profile, m_StomachContents, m_StomachVolume, Math::Max(), StomachItem::ProcessDigestion(), and UpdateStomachTemperature().
Referenced by Update().
| void ReduceContents | ( | float | percent | ) |
References Math::Clamp(), m_StomachContents, and m_StomachVolume.
References CHECKSUM, string::Hash(), m_IDsToNames, and m_NamesToIDs.
Referenced by InitData().
| void SetAgentTransferFilter | ( | int | filter_agents | ) |
References m_AgentTransferFilter.
| void Update | ( | float | delta_time | ) |
References ProcessNutrients().
| protected void UpdateStomachTemperature | ( | ) |
References StomachItem::GetTemperature(), m_StomachContents, and m_StomachTemperature.
Referenced by AddToStomach(), and ProcessNutrients().
| const int ACCEPTABLE_FOODSTAGE_MAX = FoodStageType.COUNT - 1 |
Referenced by AddToStomach().
| const int ACCEPTABLE_QUANTITY_MAX = 32768 |
Referenced by AddToStomach().
|
static |
Referenced by OnStoreLoad(), and RegisterItem().
| const int DIGESTING_ENERGY = 2 |
Referenced by ProcessNutrients().
| class StomachItem DIGESTING_WATER = 1 |
Referenced by ProcessNutrients().
| const float DIGESTION_POINTS = PlayerConstants.DIGESTION_SPEED |
Referenced by ProcessNutrients().
| const int id_bit_offset = 4 |
Referenced by OnStoreLoad(), and OnStoreSave().
| int m_AgentTransferFilter |
Referenced by GetAgentTransferFilter(), and SetAgentTransferFilter().
| bool m_Digesting |
| int m_DigestingType |
Referenced by GetDigestingType(), IsDigesting(), and ProcessNutrients().
Referenced by GetClassnameFromID(), and RegisterItem().
|
static |
Referenced by GetIDFromClassname(), and RegisterItem().
| PlayerBase m_Player |
| ref array<ref StomachItem> m_StomachContents = new array<ref StomachItem> |
| protected float m_StomachTemperature |
Referenced by ClearContents(), GetDebugObject(), GetStomachTemperature(), and UpdateStomachTemperature().
| float m_StomachVolume |
Referenced by ClearContents(), GetDebugObject(), GetStomachVolume(), PrintUpdate(), ProcessNutrients(), and ReduceContents().
| const int quantity_bit_offset = 16 |
Referenced by OnStoreLoad(), and OnStoreSave().
| const int STORAGE_VERSION = 106 |