Project Zomboid Lua Docs 29123
Unofficial documentation for Project Zomboid's Lua
Loading...
Searching...
No Matches
ISScytheGrassCursor Class Reference
Inheritance diagram for ISScytheGrassCursor:
ISBuildingObject ISBaseObject

Public Member Functions

void create (number x, number y, number z, boolean north, string sprite)
boolean walkTo (number x, number y, number z)
boolean isValid (IsoGridSquare square)
boolean isValidArea (number x, number y, number z)
ISBaseTimedAction isRunningAction ()
number getTopLeftOfSquares (number x, number y, number z)
void render (number x, number y, number z, IsoGridSquare square)
unknown onJoypadPressButton (integer joypadIndex, JoypadData joypadData, integer button)
string getAPrompt ()
string getLBPrompt ()
string getRBPrompt ()
IsoGridSquare[] getSquares (number x, number y, number z)
IsoGridSquare getClosestSquare (IsoGridSquare[] squares)
IsoFire[] getGrassObject (IsoGridSquare square)
void rotateKey (integer key)
 ISScytheGrassCursor (IsoPlayer character, InventoryItem scythe)
Public Member Functions inherited from ISBuildingObject
void initialise ()
void setCanPassThrough (string passThrough)
void setNorthSprite (string sprite)
void setEastSprite (string sprite)
void setSouthSprite (string sprite)
void setSprite (string sprite)
void setDragNilAfterPlace (boolean nilAfter)
void tryBuild (number x, number y, number z)
void onActionComplete ()
boolean walkTo (number x, number y, number z)
void onTimedActionStart (ISBaseTimedAction action)
void onTimedActionStop (ISBaseTimedAction action)
void updateModData ()
boolean haveMaterial (IsoGridSquare square)
void reinit ()
void reset ()
void init ()
string getSprite ()
boolean isValid (IsoGridSquare square)
void render (number x, number y, number z, IsoGridSquare square)
void rotateKey (integer key)
void rotateMouse (number x, number y)
void deactivate ()
void onJoypadPressButton (integer joypadIndex, JoypadData joypadData, integer button)
void onJoypadDirDown (JoypadData joypadData)
void onJoypadDirUp (JoypadData joypadData)
void onJoypadDirRight (JoypadData joypadData)
void onJoypadDirLeft (JoypadData joypadData)
string getAPrompt ()
string getBPrompt ()
string getYPrompt ()
string getLBPrompt ()
string getRBPrompt ()
IsoSprite getFloorCursorSprite ()
void update ()
void renderOpaqueObjectsInWorld (number x, number y, number z, IsoGridSquare square)
Public Member Functions inherited from ISBaseObject
void initialise ()
ISBaseObject derive (string type)
void addEventListener (string _event, function _callback, unknown _target)
void removeEventListener (string _event, function _callback)
void triggerEvent (string _event, unknown ...)
void clearEventListeners ()
 ISBaseObject ()

Public Attributes

number radius
IsoPlayer character
integer player
boolean skipBuildAction
boolean noNeedHammer
boolean skipWalk
boolean renderFloorHelper
InventoryItem scythe
number maxRadius
Public Attributes inherited from ISBuildingObject
boolean canPassThrough
string northSprite
string eastSprite
string southSprite
string sprite
string chosenSprite
boolean dragNilAfterPlace
boolean blockBuild
boolean isLeftDown
boolean clickedUI
boolean canBeBuild
boolean build
IsoGridSquare square
integer nSprite
boolean north
boolean south
boolean east
boolean west
number xJoypad
number yJoypad
number zJoypad
boolean isWallLike
boolean isCorner
string completionSound
boolean canBeAlwaysPlaced
boolean isContainer
boolean canBarricade
number thumpDmg
boolean isDoor
boolean isDoorFrame
number crossSpeed
boolean blockAllTheSquare
boolean dismantable
boolean canBePlastered
boolean hoppable
boolean isThumpable
boolean isFloor
table modData
IsoSprite RENDER_SPRITE_FLOOR
IsoSprite RENDER_SPRITE
string RENDER_SPRITE_NAME
Public Attributes inherited from ISBaseObject
string Type
table< string, table< function, unknown > > __eventListeners

Additional Inherited Members

Static Public Member Functions inherited from ISBuildingObject
static void onDestroy (IsoThumpable thump, IsoPlayer player)
static void removeFromGround (IsoGridSquare square)
Static Public Attributes inherited from ISBuildingObject
static IsoSprite floorCursorSprite

Constructor & Destructor Documentation

◆ ISScytheGrassCursor()

ISScytheGrassCursor::ISScytheGrassCursor ( IsoPlayer character,
InventoryItem scythe )

Member Function Documentation

◆ create()

void ISScytheGrassCursor::create ( number x,
number y,
number z,
boolean north,
string sprite )

◆ getAPrompt()

string ISScytheGrassCursor::getAPrompt ( )

◆ getClosestSquare()

IsoGridSquare ISScytheGrassCursor::getClosestSquare ( IsoGridSquare[] squares)

◆ getGrassObject()

IsoFire[] ISScytheGrassCursor::getGrassObject ( IsoGridSquare square)

◆ getLBPrompt()

string ISScytheGrassCursor::getLBPrompt ( )

◆ getRBPrompt()

string ISScytheGrassCursor::getRBPrompt ( )

◆ getSquares()

IsoGridSquare[] ISScytheGrassCursor::getSquares ( number x,
number y,
number z )

◆ getTopLeftOfSquares()

number ISScytheGrassCursor::getTopLeftOfSquares ( number x,
number y,
number z )

◆ isRunningAction()

ISBaseTimedAction ISScytheGrassCursor::isRunningAction ( )

◆ isValid()

boolean ISScytheGrassCursor::isValid ( IsoGridSquare square)

◆ isValidArea()

boolean ISScytheGrassCursor::isValidArea ( number x,
number y,
number z )

◆ onJoypadPressButton()

unknown ISScytheGrassCursor::onJoypadPressButton ( integer joypadIndex,
JoypadData joypadData,
integer button )

◆ render()

void ISScytheGrassCursor::render ( number x,
number y,
number z,
IsoGridSquare square )

◆ rotateKey()

void ISScytheGrassCursor::rotateKey ( integer key)

◆ walkTo()

boolean ISScytheGrassCursor::walkTo ( number x,
number y,
number z )

Member Data Documentation

◆ character

IsoPlayer ISScytheGrassCursor::character

◆ maxRadius

number ISScytheGrassCursor::maxRadius

◆ noNeedHammer

boolean ISScytheGrassCursor::noNeedHammer

◆ player

integer ISScytheGrassCursor::player

◆ radius

number ISScytheGrassCursor::radius

◆ renderFloorHelper

boolean ISScytheGrassCursor::renderFloorHelper

◆ scythe

InventoryItem ISScytheGrassCursor::scythe

◆ skipBuildAction

boolean ISScytheGrassCursor::skipBuildAction

◆ skipWalk

boolean ISScytheGrassCursor::skipWalk

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