DayZ Enforce
Script API
Private Member Functions | Private Attributes | Static Private Attributes | List of all members
EN5C_PlantBase Class Reference

#include <PlantBase.h>

Inheritance diagram for EN5C_PlantBase:
ItemBase PlantBase

Private Member Functions

void  EN5C_PlantBase ()
 
bool  ConditionIntoInventory (EntityAI parent)
 
bool  ConditionIntoHands (EntityAI parent)
 
bool  ConditionOutOfHands (EntityAI parent)
 
void  StartGrowing (GardenBase garden_base, float rain_intensity, float fertility, float harvesting_efficiency)
 
void  ChangeInfestation (bool is_infested)
 
void  Update ()
 
void  GrowthTimerTick ()
 
void  InfestationTimerTick ()
 
void  SpoiledTimerTick ()
 
void  SetSpoiled ()
 
string  GiveWater (PlayerBase player, ItemBase item, float consumed_quantity)
 
string  StopInfestation (PlayerBase player, ItemBase item, float consumed_quantity)
 
string  Remove (PlayerBase player)
 
string  Harvest (PlayerBase player)
 
bool  NeedsWater ()
 
bool  NeedsSpraying ()
 
void  RemoveSlot ()
 
bool  IsDry ()
 
bool  IsGrowing ()
 
bool  IsMature ()
 
bool  IsSpoiled ()
 

Private Attributes

private int  m_WaterUsage
 
private int  m_SprayUsage
 
private int  m_DeleteDryPlantTime
 
private int  m_SpoiledRemoveTime
 
private int  m_FullMaturityTime
 
private int  m_SpoilTime
 
private int  m_StateChangeTime
 
private float  m_InfestationChance
 
private int  m_GrowthStagesCount
 
private int  m_CropsCount
 
private string  m_CropsType
 
private float  m_PlantMaterialMultiplier
 
private ModuleHorticulture  m_ModuleHorticulture
 
private GardenBase  m_GardenBase = NULL
 
private autoptr Timer  m_GrowthTimer = NULL
 
private autoptr Timer  m_InfestationTimer = NULL
 
private autoptr Timer  m_SpoiledTimer = NULL
 
private autoptr Timer  m_SpoiledRemoveTimer = NULL
 
private int  m_PlantState
 
private int  m_PlantStateIndex
 
private float  m_CurrentMaterialQuantity
 
private bool  m_IsInfested
 
private float  m_WaterQuantity
 
private float  m_SprayQuantity
 
private int  m_AmountOfDrops
 
private string  m_Material
 
private int  m_AmountOfMaterialPerDrop
 
private int  m_DamageToMiningItemEachDrop
 

Static Private Attributes

static const int  DRY = 0
 
static const int  GROWING = 1
 
static const int  MATURE = 2
 
static const int  SPOILED = 3
 

Constructor & Destructor Documentation

void EN5C_PlantBase::EN5C_PlantBase ( )
private

Member Function Documentation

bool EN5C_PlantBase::ConditionIntoInventory ( EntityAI  parent )
private
bool EN5C_PlantBase::ConditionIntoHands ( EntityAI  parent )
private
bool EN5C_PlantBase::ConditionOutOfHands ( EntityAI  parent )
private
void EN5C_PlantBase::StartGrowing ( GardenBase  garden_base,
float  rain_intensity,
float  fertility,
float  harvesting_efficiency 
)
private
void EN5C_PlantBase::ChangeInfestation ( bool  is_infested )
private
void EN5C_PlantBase::Update ( )
private
void EN5C_PlantBase::GrowthTimerTick ( )
private
void EN5C_PlantBase::InfestationTimerTick ( )
private
void EN5C_PlantBase::SpoiledTimerTick ( )
private

References m_GrowthTimer, and RemoveSlot().

void EN5C_PlantBase::SetSpoiled ( )
private
string EN5C_PlantBase::GiveWater ( PlayerBase  player,
ItemBase  item,
float  consumed_quantity 
)
private
string EN5C_PlantBase::StopInfestation ( PlayerBase  player,
ItemBase  item,
float  consumed_quantity 
)
private
string EN5C_PlantBase::Remove ( PlayerBase  player )
private
string EN5C_PlantBase::Harvest ( PlayerBase  player )
private
bool EN5C_PlantBase::NeedsWater ( )
private
bool EN5C_PlantBase::NeedsSpraying ( )
private
void EN5C_PlantBase::RemoveSlot ( )
private
bool EN5C_PlantBase::IsDry ( )
private

References DRY, and m_PlantState.

Referenced by ActionRemovePlant::CanDo().

bool EN5C_PlantBase::IsGrowing ( )
private
bool EN5C_PlantBase::IsMature ( )
private

References m_PlantState, and MATURE.

Referenced by ActionHarvestCrops::CanDo(), and GrowthTimerTick().

bool EN5C_PlantBase::IsSpoiled ( )
private

References m_PlantState, and SPOILED.

Referenced by ActionHarvestCrops::CanDo(), and SetSpoiled().

Member Data Documentation

const int EN5C_PlantBase::DRY = 0
staticprivate

Referenced by IsDry(), NeedsWater(), and StartGrowing().

const int EN5C_PlantBase::GROWING = 1
staticprivate

Referenced by GiveWater(), IsGrowing(), and StartGrowing().

const int EN5C_PlantBase::MATURE = 2
staticprivate

Referenced by GrowthTimerTick(), and IsMature().

const int EN5C_PlantBase::SPOILED = 3
staticprivate

Referenced by Harvest(), IsSpoiled(), and SetSpoiled().

private int EN5C_PlantBase::m_WaterUsage
private
private int EN5C_PlantBase::m_SprayUsage
private

Referenced by EN5C_PlantBase(), and NeedsSpraying().

private int EN5C_PlantBase::m_DeleteDryPlantTime
private

Referenced by EN5C_PlantBase(), and StartGrowing().

private int EN5C_PlantBase::m_SpoiledRemoveTime
private

Referenced by EN5C_PlantBase(), and SetSpoiled().

private int EN5C_PlantBase::m_FullMaturityTime
private

Referenced by GrowthTimerTick(), and StartGrowing().

private int EN5C_PlantBase::m_SpoilTime
private

Referenced by GrowthTimerTick(), and StartGrowing().

private int EN5C_PlantBase::m_StateChangeTime
private

Referenced by GiveWater(), and StartGrowing().

private float EN5C_PlantBase::m_InfestationChance
private
private int EN5C_PlantBase::m_GrowthStagesCount
private
private int EN5C_PlantBase::m_CropsCount
private
private string EN5C_PlantBase::m_CropsType
private

Referenced by EN5C_PlantBase(), and Harvest().

private float EN5C_PlantBase::m_PlantMaterialMultiplier
private

Referenced by StartGrowing(), and Update().

private ModuleHorticulture EN5C_PlantBase::m_ModuleHorticulture
private
private GardenBase EN5C_PlantBase::m_GardenBase = NULL
private

Referenced by RemoveSlot(), and StartGrowing().

private autoptr Timer EN5C_PlantBase::m_GrowthTimer = NULL
private
private autoptr Timer EN5C_PlantBase::m_InfestationTimer = NULL
private

Referenced by GrowthTimerTick(), and StopInfestation().

private autoptr Timer EN5C_PlantBase::m_SpoiledTimer = NULL
private

Referenced by GrowthTimerTick().

private autoptr Timer EN5C_PlantBase::m_SpoiledRemoveTimer = NULL
private

Referenced by SetSpoiled().

private int EN5C_PlantBase::m_PlantState
private
private int EN5C_PlantBase::m_PlantStateIndex
private
private float EN5C_PlantBase::m_CurrentMaterialQuantity
private

Referenced by EN5C_PlantBase(), Remove(), and Update().

private bool EN5C_PlantBase::m_IsInfested
private
private float EN5C_PlantBase::m_WaterQuantity
private
private float EN5C_PlantBase::m_SprayQuantity
private
private int EN5C_PlantBase::m_AmountOfDrops
private
private string EN5C_PlantBase::m_Material
private
private int EN5C_PlantBase::m_AmountOfMaterialPerDrop
private
private int EN5C_PlantBase::m_DamageToMiningItemEachDrop
private

The documentation for this class was generated from the following files:
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)