Static Private Member Functions | |
static float | GetFoodTotalVolume (ItemBase item, string classname="", int food_stage=0) |
static float | GetFoodEnergy (ItemBase item, string classname="", int food_stage=0) |
static float | GetFoodWater (ItemBase item, string classname="", int food_stage=0) |
static float | GetFoodNutritionalIndex (ItemBase item, string classname="", int food_stage=0) |
static float | GetFoodToxicity (ItemBase item, string classname="", int food_stage=0) |
static int | GetFoodAgents (ItemBase item, string classname="", int food_stage=0) |
static float | GetFoodDigestibility (ItemBase item, string classname="", int food_stage=0) |
static float | GetAgentsPerDigest (ItemBase item, string className="", int foodStage=0) |
static NutritionalProfile | GetNutritionalProfile (ItemBase item, string classname="", int food_stage=0) |
Private Attributes | |
const string | DIRECT_COOKING_SLOT_NAME = "DirectCooking" |
const string | SOUND_BAKING_START = "Baking_SoundSet" |
const string | SOUND_BAKING_DONE = "Baking_Done_SoundSet" |
const string | SOUND_BOILING_START = "Boiling_SoundSet" |
const string | SOUND_BOILING_DONE = "Boiling_Done_SoundSet" |
const string | SOUND_DRYING_START = "Drying_SoundSet" |
const string | SOUND_DRYING_DONE = "Drying_Done_SoundSet" |
const string | SOUND_BURNING_DONE = "Food_Burning_SoundSet" |
protected bool | m_MakeCookingSounds |
protected SoundOnVehicle | m_SoundCooking |
protected EffectSound | m_SoundEffectCooking |
DEPRECATED. | |
protected string | m_SoundPlaying |
ref FoodStage | m_FoodStage |
protected float | m_DecayTimer |
protected float | m_DecayDelta = 0.0 |
protected FoodStageType | m_LastDecayStage = FoodStageType.NONE |
protected ParticleSource | m_HotVaporParticle |
private CookingMethodType | m_CookedByMethod |
|
inlineprivate |
References HasFoodStage(), m_CookedByMethod, m_FoodStage, and m_SoundPlaying.
|
inlineprivate |
References Synchronize().
|
inlineprivate |
|
inlineprivate |
Referenced by ProcessItemToCook().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
Referenced by ActionCookOnStick::ActionCondition(), and CookOnStick().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
References GetFoodStage().
Referenced by ProcessDecay(), UpdateCookingState(), and UpdateCookingStateOnStick().
|
inlineprivate |
Referenced by TransferEntityVariables().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
References GetFoodStage(), and IsFoodBurned().
|
inlineprivate |
References GetFoodStageType().
|
inlineprivate |
References GetFoodStage().
Referenced by Apple::EEOnCECreate(), CraterellusMushroom::EEOnCECreate(), GreenBellPepper::EEOnCECreate(), Pear::EEOnCECreate(), Plum::EEOnCECreate(), Potato::EEOnCECreate(), Tomato::EEOnCECreate(), Zucchini::EEOnCECreate(), MushroomBase::EEOnCECreate(), OnAction(), ProcessDecay(), SmokeItem(), TransferFoodStage(), UpdateCookingState(), and UpdateCookingStateOnStick().
References Barrel_ColorBase::IsOpen().
References Barrel_ColorBase::IsOpen().
References Barrel_ColorBase::IsOpen().
References Barrel_ColorBase::IsOpen().
|
inlineprivate |
References AddQuantity(), and OnConsume().
Referenced by ManBase::Consume().
|
inlineprivate |
References m_HotVaporParticle, RemoveAudio(), and Particle::Stop().
|
inlineprivate |
References UpdateVisualsEx().
|
inlineprivate |
disable sounds (from cooking)
check for DirectCooking slot name
References CanHaveTemperature(), string::Contains(), DIRECT_COOKING_SLOT_NAME, InventorySlots::GetSlotName(), MakeSoundsOnClient(), ResetCookingTime(), and UpdateVaporParticle().
Filter agents from the item (override on higher implementations)
if no per FoodStage/Nutrition override is set, remove possible Food Poisoning to prevent double punishment from Bloody Hands
References GetFoodStage(), GetNutritionalProfile(), NutritionalProfile::m_Agents, and NutritionalProfile::m_AgentsPerDigest.
Referenced by ManBase::Consume().
|
inlinestaticprivate |
References CGame::ConfigGetInt(), GetAgentsPerDigest(), GetFoodStage(), and GetGame().
Referenced by GetAgentsPerDigest(), and GetNutritionalProfile().
|
inlineprivate |
References IsFoodRotten().
|
inlineprivate |
|
inlineprivate |
References GetFoodStage().
Referenced by GetLocalProperties(), RefreshAudio(), SmokeItem(), UpdateCookingState(), and UpdateCookingStateOnStick().
|
inlineprivate |
References GetFoodStage(), and SAT_DEBUG_ACTION.
|
inlineprivate |
References m_CookedByMethod, and m_MakeCookingSounds.
|
inlineprivate |
References m_DecayDelta.
Referenced by GetLocalProperties().
|
inlineprivate |
References m_DecayTimer.
Referenced by GetLocalProperties().
|
inlinestaticprivate |
References CGame::ConfigGetInt(), GetFoodStage(), and GetGame().
Referenced by GetNutritionalProfile().
|
inlinestaticprivate |
References CGame::ConfigGetInt(), GetFoodStage(), and GetGame().
Referenced by GetNutritionalProfile().
|
inlinestaticprivate |
References CGame::ConfigGetFloat(), GetFoodStage(), and GetGame().
Referenced by GetNutritionalProfile().
|
inlinestaticprivate |
References CGame::ConfigGetFloat(), GetFoodStage(), and GetGame().
Referenced by GetNutritionalProfile().
|
inlineprivate |
References m_FoodStage.
Referenced by CanChangeToNewStage(), CanItemOverheat(), ChangeFoodStage(), ManBase::Consume(), CAContinuousTimeCooking::Execute(), FilterAgents(), GetAgentsPerDigest(), GetCookingTime(), GetDebugActions(), GetFoodAgents(), GetFoodDigestibility(), GetFoodEnergy(), GetFoodNutritionalIndex(), GetFoodStageName(), GetFoodStageType(), GetFoodTotalVolume(), GetFoodToxicity(), GetFoodWater(), GetLocalProperties(), GetNextFoodStageType(), GetTemperatureFreezeTime(), GetTemperatureThawTime(), IsFoodBaked(), IsFoodBoiled(), IsFoodBurned(), IsFoodDried(), IsFoodRaw(), IsFoodRotten(), OnStoreLoad(), OnStoreSave(), ResetCookingTime(), SetCookingTime(), CAContinuousTimeCooking::Setup(), UIScriptedMenu::UpdateItemInfoFoodStage(), and UpdateVisualsEx().
|
inlineprivate |
References GetFoodStage().
|
inlineprivate |
References GetFoodStage().
Referenced by CanProcessDecay(), RecipeBase::Do(), OnAction(), ProcessDecay(), RefreshAudio(), SmokeItem(), UpdateCookingState(), and UpdateCookingStateOnStick().
|
inlinestaticprivate |
References CGame::ConfigGetFloat(), GetFoodStage(), and GetGame().
Referenced by GetNutritionalProfile().
|
inlinestaticprivate |
References CGame::ConfigGetFloat(), GetFoodStage(), and GetGame().
Referenced by GetNutritionalProfile().
|
inlinestaticprivate |
References CGame::ConfigGetFloat(), GetFoodStage(), and GetGame().
Referenced by GetNutritionalProfile().
|
inlineprivate |
References m_LastDecayStage.
|
inlineprivate |
References GetFoodStage().
Referenced by GetMinTempToCook(), GetTimeToCook(), RefreshAudio(), UpdateCookingState(), and UpdateCookingStateOnStick().
|
inlinestaticprivate |
References GetAgentsPerDigest(), GetFoodAgents(), GetFoodDigestibility(), GetFoodEnergy(), GetFoodNutritionalIndex(), GetFoodTotalVolume(), GetFoodToxicity(), GetFoodWater(), NutritionalProfile::m_Agents, NutritionalProfile::m_AgentsPerDigest, NutritionalProfile::m_Digestibility, NutritionalProfile::m_Energy, NutritionalProfile::m_FullnessIndex, NutritionalProfile::m_NutritionalIndex, NutritionalProfile::m_Toxicity, and NutritionalProfile::m_WaterContent.
Referenced by AddToStomach(), and FilterAgents().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
removes select agents on foodstage transitions
References RemoveAllAgentsExcept().
Referenced by OnFoodStageChange().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
References InsertAgent().
|
inlineprivate |
References can_this_be_combined.
|
inlineprivate |
Referenced by ProcessDecay().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
References GetFoodStage().
Referenced by ProcessItemToCook().
|
inlineprivate |
References GetFoodStage().
Referenced by ProcessItemToCook().
|
inlineprivate |
References GetFoodStage().
Referenced by CanItemOverheat(), and ProcessItemToCook().
|
inlineprivate |
References GetFoodStage().
Referenced by ProcessItemToCook().
|
inlineprivate |
References GetFoodStage().
Referenced by ActionEatMeat::ApplyModifiers().
|
inlineprivate |
References GetFoodStage().
Referenced by GetBaitEffectivity().
|
inlineprivate |
Referenced by ActionEatFruit::ActionCondition(), and ProcessDecay().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
Referenced by ActionEatMeat::ApplyModifiers(), CAContinuousTimeCooking::Execute(), and ProcessDecay().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
Referenced by ProcessDecay().
|
inlineprivate |
References m_CookedByMethod, m_MakeCookingSounds, and Synchronize().
Referenced by EEItemLocationChanged(), ActionCookOnStick::OnEndServer(), StopCooling(), TerminateCookingSounds(), UpdateCookingState(), and UpdateCookingStateOnStick().
|
inlineprivate |
References ChangeFoodStage(), GetFoodStageType(), and GetGame().
|
inlineprivate |
References PlayerConstants::CONSUMPTION_DAMAGE_PER_BITE, PlayerConstants::CONSUMPTION_DAMAGE_TEMP_THRESHOLD, and GetTemperature().
Referenced by Consume().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
called on server
References HandleFoodStageChangeAgents(), and UpdateVisualsEx().
|
inlineprivate |
References GetFoodStage(), m_DecayTimer, m_LastDecayStage, OnStoreLoad(), Serializer::Read(), Synchronize(), and UpdateVisualsEx().
Referenced by OnStoreLoad().
|
inlineprivate |
References GetFoodStage(), m_DecayTimer, m_LastDecayStage, and Serializer::Write().
|
inlineprivate |
References CanHaveTemperature(), m_MakeCookingSounds, RefreshAudio(), RemoveAudio(), and UpdateVaporParticle().
References InventorySlots::GetSlotName().
References InventorySlots::GetSlotName().
References CanChangeToNewStage(), ChangeFoodStage(), GameConstants::DECAY_FOOD_BAKED_FRVG, GameConstants::DECAY_FOOD_BAKED_MEAT, GameConstants::DECAY_FOOD_BOILED_FRVG, GameConstants::DECAY_FOOD_BOILED_MEAT, GameConstants::DECAY_FOOD_CAN_OPEN, GameConstants::DECAY_FOOD_DRIED_MEAT, GameConstants::DECAY_FOOD_FRVG_DRIED_CHANCE, GameConstants::DECAY_FOOD_RAW_CORPSE, GameConstants::DECAY_FOOD_RAW_FRVG, GameConstants::DECAY_FOOD_RAW_MEAT, GameConstants::DECAY_RATE_ON_PLAYER, GameConstants::DECAY_TIMER_RANDOM_PERCENTAGE, GetFoodStageType(), GetGame(), InsertAgent(), IsCorpse(), IsFruit(), IsMeat(), IsMushroom(), m_DecayDelta, m_DecayTimer, m_LastDecayStage, Math::RandomFloat01(), and Math::RandomIntInclusive().
|
inlineprivate |
References GetCookingTime(), GetFoodStageType(), GetNextFoodStageType(), GetType(), m_CookedByMethod, SOUND_BAKING_DONE, SOUND_BAKING_START, SOUND_BOILING_DONE, SOUND_BOILING_START, SOUND_BURNING_DONE, SOUND_DRYING_DONE, SOUND_DRYING_START, and SoundCookingStart().
Referenced by OnVariablesSynchronized().
|
inlineprivate |
References m_MakeCookingSounds, and SoundCookingStop().
Referenced by EEDelete(), and OnVariablesSynchronized().
|
inlineprivate |
References Error(), and ReplaceEdibleWithNewLambda().
Referenced by BakedBeansCan::Open(), PeachesCan::Open(), SardinesCan::Open(), SpaghettiCan::Open(), TacticalBaconCan::Open(), TunaCan::Open(), DogFoodCan::Open(), CatFoodCan::Open(), PorkCan::Open(), Lunchmeat::Open(), CrabCan::Open(), UnknownFoodCan::Open(), Pajka::Open(), Pate::Open(), and BrisketSpread::Open().
|
inlineprivate |
References GetFoodStage(), and Synchronize().
Referenced by EEItemLocationChanged(), SmokeItem(), UpdateCookingState(), and UpdateCookingStateOnStick().
|
inlineprivate |
References ActionAttach(), ActionDetach(), and AddAction().
|
inlineprivate |
References ActionForceFeed, and AddAction().
|
inlineprivate |
References ActionForceFeed, and AddAction().
|
inlineprivate |
References ActionForceFeed, and AddAction().
|
inlineprivate |
References ActionForceFeed, and AddAction().
|
inlineprivate |
References ActionForceFeed, and AddAction().
|
inlineprivate |
References ActionForceFeed, and AddAction().
|
inlineprivate |
References ActionForceFeed, and AddAction().
|
inlineprivate |
References ActionForceConsumeSingle(), and AddAction().
|
inlineprivate |
References ActionForceFeed, and AddAction().
|
inlineprivate |
References ActionForceFeed, and AddAction().
|
inlineprivate |
References ActionForceFeed, and AddAction().
|
inlineprivate |
References ActionForceFeed, and AddAction().
|
inlineprivate |
References ActionForceFeed, and AddAction().
|
inlineprivate |
References ActionForceFeed, and AddAction().
|
inlineprivate |
References ActionForceFeed, and AddAction().
|
inlineprivate |
References ActionForceFeed, and AddAction().
|
inlineprivate |
References ActionForceFeed, and AddAction().
|
inlineprivate |
References ActionForceFeed, and AddAction().
|
inlineprivate |
References ActionForceConsumeSingle(), and AddAction().
|
inlineprivate |
References ActionForceFeed, and AddAction().
|
inlineprivate |
References ActionForceFeed, and AddAction().
|
inlineprivate |
References ActionForceFeed, and AddAction().
|
inlineprivate |
References ActionForceFeed, and AddAction().
|
inlineprivate |
References ActionForceFeed, and AddAction().
|
inlineprivate |
References ActionForceFeed, and AddAction().
|
inlineprivate |
References ActionForceFeed, and AddAction().
|
inlineprivate |
References ActionForceFeed, and AddAction().
|
inlineprivate |
References ActionForceFeed, and AddAction().
|
inlineprivate |
References ActionForceFeed, and AddAction().
|
inlineprivate |
References ActionForceFeed, and AddAction().
|
inlineprivate |
References ActionForceFeed, and AddAction().
|
inlineprivate |
References GetFoodStage(), and Synchronize().
Referenced by SmokeItem(), UpdateCookingState(), and UpdateCookingStateOnStick().
|
inlineprivate |
References GetPosition, m_SoundEffectCooking, m_SoundPlaying, SEffectManager::PlaySound(), and SoundCookingStop().
Referenced by RefreshAudio().
|
inlineprivate |
References m_SoundEffectCooking, m_SoundPlaying, and EffectSound::Stop().
Referenced by RemoveAudio(), and SoundCookingStart().
|
inlineprivate |
Referenced by AfterStoreLoad(), MakeSoundsOnClient(), OnStoreLoad(), ResetCookingTime(), and SetCookingTime().
|
inlineprivate |
References ChangeFoodStage(), m_DecayDelta, m_DecayTimer, and m_LastDecayStage.
Referenced by TransferEntityVariables().
|
inlineprivate |
References GetGame(), InventoryLocation::GetType(), ParticleList::ITEM_HOT_VAPOR, m_HotVaporParticle, ParticleManager(), ParticleSource::SetParticleAutoDestroyFlags(), ParticleSource::SetParticleParam(), GameConstants::STATE_HOT_LVL_TWO, and Particle::Stop().
Referenced by EEItemLocationChanged(), and OnVariablesSynchronized().
|
inlineprivate |
References UpdateVisualsEx().
|
inlineprivate |
References GetFoodStage().
Referenced by EEInit(), OnFoodStageChange(), OnStoreLoad(), and UpdateVisuals().
|
inlineprivate |
|
inlineprivate |
|
private |
Referenced by EEItemLocationChanged().
|
private |
Referenced by Edible_Base(), GetDebugText(), MakeSoundsOnClient(), and RefreshAudio().
|
private |
Referenced by GetDecayDelta(), ProcessDecay(), and TransferFoodStage().
|
private |
Referenced by GetDecayTimer(), OnStoreLoad(), OnStoreSave(), ProcessDecay(), and TransferFoodStage().
|
private |
Referenced by Edible_Base(), GetFoodStage(), GetTemperatureFreezeTime(), and GetTemperatureThawTime().
|
private |
Referenced by EEDelete(), and UpdateVaporParticle().
|
private |
Referenced by GetLastDecayStage(), OnStoreLoad(), OnStoreSave(), ProcessDecay(), and TransferFoodStage().
|
private |
Referenced by GetDebugText(), MakeSoundsOnClient(), OnVariablesSynchronized(), and RemoveAudio().
|
private |
|
private |
DEPRECATED.
Referenced by SoundCookingStart(), and SoundCookingStop().
|
private |
Referenced by Edible_Base(), SoundCookingStart(), and SoundCookingStop().
|
private |
Referenced by RefreshAudio().
|
private |
Referenced by RefreshAudio().
|
private |
Referenced by RefreshAudio().
|
private |
Referenced by RefreshAudio().
|
private |
Referenced by RefreshAudio().
|
private |
Referenced by RefreshAudio().
|
private |
Referenced by RefreshAudio().