DayZ 1.24
Loading...
Searching...
No Matches
MushroomBase Class Reference
Inheritance diagram for MushroomBase:
[legend]
Collaboration diagram for MushroomBase:
[legend]

Private Member Functions

override bool CanBeCookedOnStick ()
 
override bool CanBeCooked ()
 
override bool IsMushroom ()
 
override bool CanDecay ()
 
override void SetActions ()
 
override void EEOnCECreate ()
 
- Private Member Functions inherited from Edible_Base
void RefreshAudio ()
 
void RemoveAudio ()
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
override void AfterStoreLoad ()
 
FoodStage GetFoodStage ()
 
override bool IsMeat ()
 
override bool IsCorpse ()
 
override bool IsFruit ()
 
override bool IsMushroom ()
 
FoodStageType GetFoodStageType ()
 
bool IsFoodRaw ()
 
bool IsFoodBaked ()
 
bool IsFoodBoiled ()
 
bool IsFoodDried ()
 
bool IsFoodBurned ()
 
bool IsFoodRotten ()
 
void ChangeFoodStage (FoodStageType new_food_stage_type)
 
FoodStageType GetNextFoodStageType (CookingMethodType cooking_method)
 
string GetFoodStageName (FoodStageType food_stage_type)
 
bool CanChangeToNewStage (CookingMethodType cooking_method)
 
void TransferFoodStage (notnull Edible_Base source)
 
float GetCookingTime ()
 
void SetCookingTime (float time)
 
void ReplaceEdibleWithNew (string typeName)
 
override void SetActions ()
 
void SoundCookingStart (string sound_name)
 
void SoundCookingStop ()
 
override bool CanHaveTemperature ()
 
override bool CanDecay ()
 
override bool CanProcessDecay ()
 
override void ProcessDecay (float delta, bool hasRootAsPlayer)
 
override void GetDebugActions (out TSelectableActionInfoArrayEx outputList)
 
override bool OnAction (int action_id, Man player, ParamsReadContext ctx)
 
override string GetDebugText ()
 
float GetDecayTimer ()
 
float GetDecayDelta ()
 
FoodStageType GetLastDecayStage ()
 

Additional Inherited Members

- Static Private Member Functions inherited from Edible_Base
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 NutritionalProfile GetNutritionalProfile (ItemBase item, string classname="", int food_stage=0)
 
- Private Attributes inherited from Edible_Base
bool m_MakeCookingSounds
 
SoundOnVehicle m_SoundCooking
 
EffectSound m_SoundEffectCooking
 DEPRECATED.
 
string m_SoundPlaying
 
ref FoodStage m_FoodStage
 
float m_DecayTimer
 
float m_DecayDelta = 0.0
 
FoodStageType m_LastDecayStage = FoodStageType.NONE
 

Detailed Description

Definition at line 1 of file MushroomBase.c.

Member Function Documentation

◆ CanBeCooked()

override bool MushroomBase::CanBeCooked ( )
inlineprivate

Definition at line 8 of file MushroomBase.c.

9 {
10 return true;
11 }

◆ CanBeCookedOnStick()

override bool MushroomBase::CanBeCookedOnStick ( )
inlineprivate

Definition at line 3 of file MushroomBase.c.

4 {
5 return true;
6 }

◆ CanDecay()

override bool MushroomBase::CanDecay ( )
inlineprivate

Definition at line 18 of file MushroomBase.c.

19 {
20 return true;
21 }

◆ EEOnCECreate()

override void MushroomBase::EEOnCECreate ( )
inlineprivate

Definition at line 31 of file MushroomBase.c.

32 {
33 int rand = Math.RandomInt(0, 10);
34
35 if (rand > 6)
36 {
38 SetHealth("", "", GetMaxHealth() * 0.1);
39 }
40 else if (rand > 2)
41 {
43 SetHealth("", "", GetMaxHealth() * 0.4);
44 }
45 }
FoodStageType
Definition FoodStage.c:2
void ChangeFoodStage(FoodStageType new_food_stage_type)
Definition EnMath.c:7
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].

References Edible_Base::ChangeFoodStage(), and Math::RandomInt().

◆ IsMushroom()

override bool MushroomBase::IsMushroom ( )
inlineprivate

Definition at line 13 of file MushroomBase.c.

14 {
15 return true;
16 }

◆ SetActions()

override void MushroomBase::SetActions ( )
inlineprivate

Definition at line 23 of file MushroomBase.c.

24 {
25 super.SetActions();
26
27 AddAction(ActionForceFeed);
29 }
void AddAction(typename actionName)

References AddAction().


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