Enumerations | |
| enum | EPlantState {  PAUSED = 0 , GROWING , MATURE , SPOILED , DRY }  | 
| enum EPlantState | 
| void ChangeInfestation | ( | bool | is_infested | ) | 
| void CheckWater | ( | ) | 
References m_DebugDeleteDryTime, m_DebugFullMaturityTime, m_DebugSpoilRemoveTime, and m_DebugSpoilTime.
      
  | 
  static | 
References m_DebugTickSpeedMultiplier.
| void DeleteDryPlantTick | ( | ) | 
| void DestroyPlant | ( | ) | 
References GetGame(), RemoveSlot(), and UnlockFromParent().
Referenced by ~PlantBase().
| string GetCropsType | ( | ) | 
References m_CropsType.
| GardenBase GetGarden | ( | ) | 
References m_GardenBase.
| EPlantState GetPlantState | ( | ) | 
References m_PlantState.
| int GetPlantStateIndex | ( | ) | 
References m_PlantStateIndex.
| Slot GetSlot | ( | ) | 
References m_Slot.
Referenced by GetWater(), GetWaterMax(), and OnStoreSave().
| float GetSprayQuantity | ( | ) | 
References m_SprayQuantity.
| float GetSprayUsage | ( | ) | 
References m_SprayUsage.
| void GrowthTimerTick | ( | ) | 
| void Harvest | ( | PlayerBase | player | ) | 
References ECE_PLACE_ON_SURFACE, GetGame(), IsHarvestable(), m_CropsCount, m_CropsType, m_GardenBase, m_HasCrops, ItemBase::SetQuantity(), and UpdatePlant().
| bool HasCrops | ( | ) | 
References m_HasCrops.
Referenced by UpdatePlant().
| void InfestationTimerTick | ( | ) | 
| void Init | ( | GardenBase | garden_base, | 
| float | fertility, | ||
| float | harvesting_efficiency, | ||
| float | water | ||
| ) | 
References Math::Ceil(), WeatherPhenomenon::GetActual(), GetGame(), Weather::GetRain(), CGame::GetWeather(), GrowthTimerTick(), m_CropsCount, m_DebugDeleteDryTime, m_DebugFullMaturityTime, m_DebugSpoilRemoveTime, m_DebugSpoilTime, m_DeleteDryPlantTime, m_FullMaturityTime, m_GardenBase, m_GrowthStagesCount, m_PlantMaterialMultiplier, m_PlantState, m_SpoilAfterFullMaturityTime, m_SpoiledRemoveTime, m_StateChangeTime, NeedsWater(), Math::RandomInt(), SetPlantState(), and SPOIL_AFTER_MATURITY_TIME.
| bool IsDry | ( | ) | 
| bool IsGrowing | ( | ) | 
| bool IsHarvestable | ( | ) | 
References m_HasCrops, and m_PlantState.
Referenced by Harvest().
| bool IsMature | ( | ) | 
| bool IsSpoiled | ( | ) | 
| bool IsSprayable | ( | ) | 
References m_PlantState, m_SprayQuantity, and m_SprayUsage.
| bool NeedsSpraying | ( | ) | 
| bool NeedsWater | ( | ) | 
References m_PlantState, and m_Slot.
Referenced by Init().
| override bool OnStoreLoad | ( | ParamsReadContext | ctx, | 
| int | version | ||
| ) | 
References OnStoreLoadCustom(), Serializer::Read(), and SetSlot().
| bool OnStoreLoadCustom | ( | ParamsReadContext | ctx, | 
| int | version | ||
| ) | 
References ErrorEx, GetPosition, m_CropsCount, m_CropsType, m_CurrentPlantMaterialQuantity, m_DeleteDryPlantTime, m_FullMaturityTime, m_GrowthStagesCount, m_HasCrops, m_InfestationChance, m_IsInfested, m_PlantMaterialMultiplier, m_PlantState, m_PlantStateIndex, m_SpoilAfterFullMaturityTime, m_SpoiledRemoveTime, m_SprayQuantity, m_SprayUsage, m_StateChangeTime, m_TimeTracker, Serializer::Read(), and UpdatePlant().
Referenced by OnStoreLoad().
| override void OnStoreSave | ( | ParamsWriteContext | ctx | ) | 
References ErrorEx, GetGame(), GetPosition, GetSlot(), CGame::ObjectDelete(), OnStoreSaveCustom(), and Serializer::Write().
| void OnStoreSaveCustom | ( | ParamsWriteContext | ctx | ) | 
References m_CropsCount, m_CropsType, m_CurrentPlantMaterialQuantity, m_DeleteDryPlantTime, m_FullMaturityTime, m_GrowthStagesCount, m_HasCrops, m_InfestationChance, m_IsInfested, m_PlantMaterialMultiplier, m_PlantState, m_PlantStateIndex, m_SpoilAfterFullMaturityTime, m_SpoiledRemoveTime, m_SprayQuantity, m_SprayUsage, m_StateChangeTime, m_TimeTracker, and Serializer::Write().
Referenced by OnStoreSave().
| void PlantBase | ( | ) | 
References CALL_CATEGORY_SYSTEM, CGame::ConfigGetInt(), CGame::ConfigGetText(), GetGame(), GetPlugin(), GetType(), m_CropsCount, m_CropsType, m_CurrentPlantMaterialQuantity, m_DeleteDryPlantTime, m_GrowthStagesCount, m_HasCrops, m_InfestationChance, m_IsInfested, m_ModuleHorticulture, m_PlantStateIndex, m_SpoiledRemoveTime, m_SprayQuantity, m_SprayUsage, m_TimeTicker, Math::RandomInt(), SetTakeable(), and TICK_FREQUENCY.
Referenced by ActionDisinfectPlant::ActionCondition(), ActionWaterPlant::ActionCondition(), ActionHarvestCrops::ActionCondition(), ActionRemovePlant::ActionCondition(), ActionDisinfectPlantBit::ActionCondition(), ItemBase::CreatePlant(), ItemBase::EEItemAttached(), CAContinuousWaterPlant::Execute(), ItemBase::GetSlotIndexByPlant(), ActionHarvestCrops::OnActionInfoUpdate(), ActionDisinfectPlantBit::OnExecuteServer(), ActionWaterPlant::OnFinishProgressClient(), ActionWaterPlant::OnFinishProgressServer(), PluginBase::OnRPCHorticultUpdate(), PluginBase::OnRPCHorticultureSpeed(), ItemBase::PrintSlots(), ItemBase::RemoveSlot(), HudDebugWinHorticulture::SendRPCSpeed(), HudDebugWinHorticulture::SendRPCUpdate(), CAContinuousDisinfectPlant::Setup(), and CAContinuousWaterPlant::Setup().
| void PrintValues | ( | ) | 
| void RemovePlant | ( | ) | 
| void RemovePlantEx | ( | vector | pos | ) | 
| void RemoveSlot | ( | ) | 
Referenced by DestroyPlant(), RemovePlantEx(), ItemBase::RemoveSlotPlant(), and Tick().
| override void SetActions | ( | ) | 
References AddAction().
| void SetDry | ( | ) | 
References m_PlantState, m_PlantStateIndex, SetPlantState(), and UpdatePlant().
Referenced by GrowthTimerTick().
| void SetGarden | ( | GardenBase | gardenBase | ) | 
References m_GardenBase.
| void SetPlantState | ( | int | state | ) | 
References m_PlantState, and m_TimeTracker.
Referenced by GrowthTimerTick(), Init(), SetDry(), and SetSpoiled().
| void SetSlot | ( | Slot | slot | ) | 
References m_Slot.
Referenced by OnStoreLoad().
| void SetSpoiled | ( | ) | 
References m_PlantState, m_PlantStateIndex, SetPlantState(), and UpdatePlant().
Referenced by Tick().
| void SpoiledRemoveTimerTick | ( | ) | 
| void SprayPlant | ( | float | consumed_quantity | ) | 
References ChangeInfestation(), m_InfestationChance, m_IsInfested, m_SprayQuantity, m_SprayUsage, and UpdatePlant().
| void Tick | ( | ) | 
| void UpdatePlant | ( | ) | 
References HasCrops(), m_CurrentPlantMaterialQuantity, m_PlantMaterialMultiplier, m_PlantStateIndex, and ToStringLen().
Referenced by GrowthTimerTick(), Harvest(), OnStoreLoadCustom(), SetDry(), SetSpoiled(), and SprayPlant().
| void ~PlantBase | ( | ) | 
References DestroyPlant(), IsPendingDeletion(), m_MarkForDeletion, m_TimeTicker, and Timer::Stop().
| private int m_CropsCount | 
Referenced by Harvest(), Init(), OnStoreLoadCustom(), OnStoreSaveCustom(), and PlantBase().
| private string m_CropsType | 
Referenced by GetCropsType(), Harvest(), OnStoreLoadCustom(), OnStoreSaveCustom(), and PlantBase().
| private float m_CurrentPlantMaterialQuantity | 
Referenced by OnStoreLoadCustom(), OnStoreSaveCustom(), PlantBase(), PrintValues(), RemovePlantEx(), and UpdatePlant().
      
  | 
  static | 
Referenced by DebugSetGlobalTimes(), and Init().
      
  | 
  static | 
Referenced by DebugSetGlobalTimes(), and Init().
      
  | 
  static | 
Referenced by DebugSetGlobalTimes(), and Init().
      
  | 
  static | 
Referenced by DebugSetGlobalTimes(), and Init().
      
  | 
  static | 
Referenced by DebugSetTickSpeedMultiplier(), and Tick().
| int m_DeleteDryPlantTime | 
Referenced by DebugSetTimes(), Init(), OnStoreLoadCustom(), OnStoreSaveCustom(), PlantBase(), and Tick().
| ref Timer m_DeleteDryPlantTimer | 
| int m_FullMaturityTime | 
| private GardenBase m_GardenBase = NULL | 
Referenced by GetGarden(), Harvest(), Init(), PrintValues(), and SetGarden().
| private int m_GrowthStagesCount | 
Referenced by DebugSetTimes(), GrowthTimerTick(), Init(), OnStoreLoadCustom(), OnStoreSaveCustom(), PlantBase(), and PrintValues().
| ref Timer m_GrowthTimer | 
| private bool m_HasCrops | 
Referenced by Harvest(), HasCrops(), IsHarvestable(), OnStoreLoadCustom(), OnStoreSaveCustom(), PlantBase(), and PrintValues().
| private float m_InfestationChance | 
Referenced by GrowthTimerTick(), OnStoreLoadCustom(), OnStoreSaveCustom(), PlantBase(), and SprayPlant().
| ref Timer m_InfestationTimer | 
| private bool m_IsInfested | 
Referenced by ChangeInfestation(), GrowthTimerTick(), OnStoreLoadCustom(), OnStoreSaveCustom(), PlantBase(), PrintValues(), and SprayPlant().
| bool m_MarkForDeletion = false | 
Referenced by ~PlantBase().
| private PluginHorticulture m_ModuleHorticulture | 
Referenced by ChangeInfestation(), and PlantBase().
| private float m_PlantMaterialMultiplier | 
Referenced by Init(), OnStoreLoadCustom(), OnStoreSaveCustom(), and UpdatePlant().
| protected EPlantState m_PlantState | 
Referenced by GetPlantState(), Init(), IsHarvestable(), IsSprayable(), NeedsWater(), OnStoreLoadCustom(), OnStoreSaveCustom(), PrintValues(), SetDry(), SetPlantState(), SetSpoiled(), and Tick().
| private int m_PlantStateIndex | 
Referenced by GetPlantStateIndex(), GrowthTimerTick(), OnStoreLoadCustom(), OnStoreSaveCustom(), PlantBase(), PrintValues(), SetDry(), SetSpoiled(), and UpdatePlant().
| private ref Slot m_Slot = NULL | 
Referenced by GetSlot(), NeedsWater(), PrintValues(), and SetSlot().
| int m_SpoilAfterFullMaturityTime | 
Referenced by DebugSetTimes(), Init(), OnStoreLoadCustom(), OnStoreSaveCustom(), PrintValues(), and Tick().
| ref Timer m_SpoilAfterFullMaturityTimer | 
| int m_SpoiledRemoveTime | 
Referenced by DebugSetTimes(), Init(), OnStoreLoadCustom(), OnStoreSaveCustom(), PlantBase(), and Tick().
| ref Timer m_SpoiledRemoveTimer | 
| private float m_SprayQuantity | 
Referenced by GetSprayQuantity(), IsSprayable(), OnStoreLoadCustom(), OnStoreSaveCustom(), PlantBase(), PrintValues(), and SprayPlant().
| enum EPlantState m_SprayUsage | 
Referenced by GetSprayUsage(), IsSprayable(), OnStoreLoadCustom(), OnStoreSaveCustom(), PlantBase(), and SprayPlant().
| float m_StateChangeTime | 
Referenced by DebugSetTimes(), Init(), OnStoreLoadCustom(), OnStoreSaveCustom(), PrintValues(), and Tick().
| protected ref Timer m_TimeTicker | 
Referenced by PlantBase(), Tick(), and ~PlantBase().
| protected float m_TimeTracker | 
Referenced by GrowthTimerTick(), OnStoreLoadCustom(), OnStoreSaveCustom(), PrintValues(), SetPlantState(), and Tick().
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
| private const int TICK_FREQUENCY = 1 | 
Referenced by PlantBase().