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

#include <GardenBase.h>

Inheritance diagram for GardenBase:
ItemBase EN5C_GardenPlot Land_Misc_Greenhouse GardenPlot

Private Member Functions

void  GardenBase ()
 
bool  ConditionIntoInventory (EntityAI parent)
 
bool  ConditionIntoHands (EntityAI parent)
 
bool  ConditionOutOfHands (EntityAI parent)
 
int  GetGardenSlotsCount ()
 
void  InitializeSlots ()
 
string  DigSoil (PlayerBase player, ItemBase item, int slot_index)
 
string  PlantSeed (PlayerBase player, ItemBase item, EN5C_DiggedSoil soil)
 
void  RemoveSlot (int index)
 
void  RemoveSlotObj (Object slot_object)
 
int  GetSlotIndexByObject (Object slot_object)
 
int  GetFreeSlotIndex (PlayerBase player)
 
int  GetNearestFreeSlotIndex (vector position)
 
vector  GetSlotPosition (int index)
 

Private Attributes

float  m_BaseFertility
 
autoptr array< Object m_Slots
 

Constructor & Destructor Documentation

void GardenBase::GardenBase ( )
private

Member Function Documentation

bool GardenBase::ConditionIntoInventory ( EntityAI  parent )
private
bool GardenBase::ConditionIntoHands ( EntityAI  parent )
private
bool GardenBase::ConditionOutOfHands ( EntityAI  parent )
private
int GardenBase::GetGardenSlotsCount ( )
private
void GardenBase::InitializeSlots ( )
private

References GetGardenSlotsCount(), and m_Slots.

Referenced by DigSoil(), and PlantSeed().

string GardenBase::DigSoil ( PlayerBase  player,
ItemBase  item,
int  slot_index 
)
private
string GardenBase::PlantSeed ( PlayerBase  player,
ItemBase  item,
EN5C_DiggedSoil  soil 
)
private
void GardenBase::RemoveSlot ( int  index )
private
void GardenBase::RemoveSlotObj ( Object  slot_object )
private
int GardenBase::GetSlotIndexByObject ( Object  slot_object )
private
int GardenBase::GetFreeSlotIndex ( PlayerBase  player )
private
int GardenBase::GetNearestFreeSlotIndex ( vector  position )
private
vector GardenBase::GetSlotPosition ( int  index )
private

Member Data Documentation

float GardenBase::m_BaseFertility
private
autoptr array<Object> GardenBase::m_Slots
private

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