Project Zomboid Lua Docs 29123
Unofficial documentation for Project Zomboid's Lua
Loading...
Searching...
No Matches
ISFarmingMenu Class Reference

Public Member Functions

void onHarvestSquareSelected ()
boolean isHarvestValid ()
void onInfoSquareSelected ()
boolean isInfoValid ()
void onWaterSquareSelected ()
boolean isWaterValid ()
void doSeedMenu (ISContextMenu context, CPlantGlobalObject plant, IsoGridSquare sq, IsoPlayer playerObj)
void onSeedSquareSelected ()
boolean isSeedValid ()
boolean isShovelValid ()
void onShovelSquareSelected ()
boolean isFertilizeValid ()
boolean isCompostValid ()
void onFertilizeSquareSelected ()
void onCompostSquareSelected ()

Static Public Member Functions

static number getFluidContainerMillilitresPerUse ()
static number getWaterUsesFloat (InventoryItem item)
static integer getWaterUsesInteger (nil item)
static boolean doFarmingMenu (integer player, ISContextMenu context, IsoObject[] worldobjects, boolean test)
static InventoryItem getShovel (IsoPlayer player)
static boolean itemSortByName (InventoryItem a, InventoryItem b)
static boolean doFarmingMenu2 (integer player, ISContextMenu context, IsoObject[] worldobjects, boolean test)
static boolean canDigHere (IsoObject[] worldObjects)
static boolean canDigHereSquare (IsoGridSquare square)
static void canPlow (number seedAvailable, string typeOfSeed, umbrella::ISContextMenu::Option option, string seedName, IsoPlayer playerObj)
static string plantInfo (umbrella::Farming::Props prop)
static boolean isValidPlant (CPlantGlobalObject plant)
static boolean walkToPlant (IsoPlayer playerObj, IsoGridSquare square)
static void onHarvest (IsoObject[] worldobjects, CPlantGlobalObject plantToharvest, IsoGridSquare sq, IsoPlayer playerObj)
static boolean isMildewCureValid ()
static void onMildewCureSquareSelected ()
static void onMildewCure (IsoObject[] worldobjects, integer uses, IsoGridSquare sq, IsoPlayer playerObj)
static boolean isFliesCureValid ()
static void onFliesCureSquareSelected ()
static void onFliesCure (IsoObject[] worldobjects, integer uses, IsoGridSquare sq, IsoPlayer playerObj)
static boolean isSlugsCureValid ()
static void onSlugsCureSquareSelected ()
static void onSlugsCure (IsoObject[] worldobjects, integer uses, IsoGridSquare sq, IsoPlayer playerObj)
static boolean isAphidCureValid ()
static void onAphidsCureSquareSelected ()
static void onAphidsCure (IsoObject[] worldobjects, integer uses, IsoGridSquare sq, IsoPlayer playerObj, ISContextMenu context)
static void onInfo (IsoObject[] worldobjects, CPlantGlobalObject plant, IsoGridSquare sq, IsoPlayer playerObj)
static void onWater (IsoObject[] worldobjects, integer uses, InventoryItem handItem, IsoPlayer playerObj, CPlantGlobalObject plant, IsoGridSquare sq, ISContextMenu context)
static string getPlantName (CPlantGlobalObject plant)
static void onSeed (IsoPlayer playerObj, string typeOfSeed, CPlantGlobalObject plant, IsoGridSquare sq, string seedName)
static void onPlow (IsoObject[] worldobjects, IsoPlayer playerObj, InventoryItem handItem)
static void onShovel (IsoObject[] worldobjects, CPlantGlobalObject plant, IsoPlayer playerObj, IsoGridSquare sq)
static void onFertilize (IsoObject[] worldobjects, InventoryItem handItem, CPlantGlobalObject plant, IsoGridSquare sq, IsoPlayer playerObj)
static void onCompost (IsoObject[] worldobjects, InventoryItem handItem, CPlantGlobalObject plant, IsoGridSquare sq, IsoPlayer playerObj)
static void onCheatGrow (IsoObject[] worldobjects, SPlantGlobalObject plant)
static void onCheatWater (IsoObject[] worldobjects, SPlantGlobalObject plant)
static void onCheat (IsoObject[] worldobjects, CPlantGlobalObject plant, umbrella::ISFarmingMenu::CheatArgs args)

Static Public Attributes

static table< IsoPlayer, ISFarmingWindowinfo
static InventoryItem GardeningSprayMilk
static InventoryItem GardeningSprayCigarettes
static InventoryItem SlugRepellent
static InventoryItem GardeningSprayAphids
static ISFarmingCursorMouse cursor
static table TEMP_PLANT

Member Function Documentation

◆ canDigHere()

boolean ISFarmingMenu::canDigHere ( IsoObject[] worldObjects)
static

◆ canDigHereSquare()

boolean ISFarmingMenu::canDigHereSquare ( IsoGridSquare square)
static

◆ canPlow()

void ISFarmingMenu::canPlow ( number seedAvailable,
string typeOfSeed,
umbrella::ISContextMenu::Option option,
string seedName,
IsoPlayer playerObj )
static

◆ doFarmingMenu()

boolean ISFarmingMenu::doFarmingMenu ( integer player,
ISContextMenu context,
IsoObject[] worldobjects,
boolean test )
static

◆ doFarmingMenu2()

boolean ISFarmingMenu::doFarmingMenu2 ( integer player,
ISContextMenu context,
IsoObject[] worldobjects,
boolean test )
static

◆ doSeedMenu()

void ISFarmingMenu::doSeedMenu ( ISContextMenu context,
CPlantGlobalObject plant,
IsoGridSquare sq,
IsoPlayer playerObj )

◆ getFluidContainerMillilitresPerUse()

number ISFarmingMenu::getFluidContainerMillilitresPerUse ( )
static

◆ getPlantName()

string ISFarmingMenu::getPlantName ( CPlantGlobalObject plant)
static

◆ getShovel()

InventoryItem ISFarmingMenu::getShovel ( IsoPlayer player)
static

◆ getWaterUsesFloat()

number ISFarmingMenu::getWaterUsesFloat ( InventoryItem item)
static

◆ getWaterUsesInteger()

integer ISFarmingMenu::getWaterUsesInteger ( nil item)
static

◆ isAphidCureValid()

boolean ISFarmingMenu::isAphidCureValid ( )
static

◆ isCompostValid()

boolean ISFarmingMenu::isCompostValid ( )

◆ isFertilizeValid()

boolean ISFarmingMenu::isFertilizeValid ( )

◆ isFliesCureValid()

boolean ISFarmingMenu::isFliesCureValid ( )
static

◆ isHarvestValid()

boolean ISFarmingMenu::isHarvestValid ( )

◆ isInfoValid()

boolean ISFarmingMenu::isInfoValid ( )

◆ isMildewCureValid()

boolean ISFarmingMenu::isMildewCureValid ( )
static

◆ isSeedValid()

boolean ISFarmingMenu::isSeedValid ( )

◆ isShovelValid()

boolean ISFarmingMenu::isShovelValid ( )

◆ isSlugsCureValid()

boolean ISFarmingMenu::isSlugsCureValid ( )
static

◆ isValidPlant()

boolean ISFarmingMenu::isValidPlant ( CPlantGlobalObject plant)
static

◆ isWaterValid()

boolean ISFarmingMenu::isWaterValid ( )

◆ itemSortByName()

boolean ISFarmingMenu::itemSortByName ( InventoryItem a,
InventoryItem b )
static

◆ onAphidsCure()

void ISFarmingMenu::onAphidsCure ( IsoObject[] worldobjects,
integer uses,
IsoGridSquare sq,
IsoPlayer playerObj,
ISContextMenu context )
static

◆ onAphidsCureSquareSelected()

void ISFarmingMenu::onAphidsCureSquareSelected ( )
static

◆ onCheat()

void ISFarmingMenu::onCheat ( IsoObject[] worldobjects,
CPlantGlobalObject plant,
umbrella::ISFarmingMenu::CheatArgs args )
static

◆ onCheatGrow()

void ISFarmingMenu::onCheatGrow ( IsoObject[] worldobjects,
SPlantGlobalObject plant )
static

◆ onCheatWater()

void ISFarmingMenu::onCheatWater ( IsoObject[] worldobjects,
SPlantGlobalObject plant )
static

◆ onCompost()

void ISFarmingMenu::onCompost ( IsoObject[] worldobjects,
InventoryItem handItem,
CPlantGlobalObject plant,
IsoGridSquare sq,
IsoPlayer playerObj )
static

◆ onCompostSquareSelected()

void ISFarmingMenu::onCompostSquareSelected ( )

◆ onFertilize()

void ISFarmingMenu::onFertilize ( IsoObject[] worldobjects,
InventoryItem handItem,
CPlantGlobalObject plant,
IsoGridSquare sq,
IsoPlayer playerObj )
static

◆ onFertilizeSquareSelected()

void ISFarmingMenu::onFertilizeSquareSelected ( )

◆ onFliesCure()

void ISFarmingMenu::onFliesCure ( IsoObject[] worldobjects,
integer uses,
IsoGridSquare sq,
IsoPlayer playerObj )
static

◆ onFliesCureSquareSelected()

void ISFarmingMenu::onFliesCureSquareSelected ( )
static

◆ onHarvest()

void ISFarmingMenu::onHarvest ( IsoObject[] worldobjects,
CPlantGlobalObject plantToharvest,
IsoGridSquare sq,
IsoPlayer playerObj )
static

◆ onHarvestSquareSelected()

void ISFarmingMenu::onHarvestSquareSelected ( )

◆ onInfo()

void ISFarmingMenu::onInfo ( IsoObject[] worldobjects,
CPlantGlobalObject plant,
IsoGridSquare sq,
IsoPlayer playerObj )
static

◆ onInfoSquareSelected()

void ISFarmingMenu::onInfoSquareSelected ( )

◆ onMildewCure()

void ISFarmingMenu::onMildewCure ( IsoObject[] worldobjects,
integer uses,
IsoGridSquare sq,
IsoPlayer playerObj )
static

◆ onMildewCureSquareSelected()

void ISFarmingMenu::onMildewCureSquareSelected ( )
static

◆ onPlow()

void ISFarmingMenu::onPlow ( IsoObject[] worldobjects,
IsoPlayer playerObj,
InventoryItem handItem )
static

◆ onSeed()

void ISFarmingMenu::onSeed ( IsoPlayer playerObj,
string typeOfSeed,
CPlantGlobalObject plant,
IsoGridSquare sq,
string seedName )
static

◆ onSeedSquareSelected()

void ISFarmingMenu::onSeedSquareSelected ( )

◆ onShovel()

void ISFarmingMenu::onShovel ( IsoObject[] worldobjects,
CPlantGlobalObject plant,
IsoPlayer playerObj,
IsoGridSquare sq )
static

◆ onShovelSquareSelected()

void ISFarmingMenu::onShovelSquareSelected ( )

◆ onSlugsCure()

void ISFarmingMenu::onSlugsCure ( IsoObject[] worldobjects,
integer uses,
IsoGridSquare sq,
IsoPlayer playerObj )
static

◆ onSlugsCureSquareSelected()

void ISFarmingMenu::onSlugsCureSquareSelected ( )
static

◆ onWater()

void ISFarmingMenu::onWater ( IsoObject[] worldobjects,
integer uses,
InventoryItem handItem,
IsoPlayer playerObj,
CPlantGlobalObject plant,
IsoGridSquare sq,
ISContextMenu context )
static

◆ onWaterSquareSelected()

void ISFarmingMenu::onWaterSquareSelected ( )

◆ plantInfo()

string ISFarmingMenu::plantInfo ( umbrella::Farming::Props prop)
static

◆ walkToPlant()

boolean ISFarmingMenu::walkToPlant ( IsoPlayer playerObj,
IsoGridSquare square )
static

Member Data Documentation

◆ cursor

ISFarmingCursorMouse ISFarmingMenu::cursor
static

◆ GardeningSprayAphids

InventoryItem ISFarmingMenu::GardeningSprayAphids
static

◆ GardeningSprayCigarettes

InventoryItem ISFarmingMenu::GardeningSprayCigarettes
static

◆ GardeningSprayMilk

InventoryItem ISFarmingMenu::GardeningSprayMilk
static

◆ info

table<IsoPlayer, ISFarmingWindow> ISFarmingMenu::info
static

◆ SlugRepellent

InventoryItem ISFarmingMenu::SlugRepellent
static

◆ TEMP_PLANT

table ISFarmingMenu::TEMP_PLANT
static

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