Project Zomboid Lua Docs 29123
Unofficial documentation for Project Zomboid's Lua
Loading...
Searching...
No Matches
ISBuildingObject Class Reference
Inheritance diagram for ISBuildingObject:
ISBaseObject ISBarbedWire ISBrushToolTileCursor ISBuildCursorMouse ISBuildIsoEntity ISBuildRampCursor ISButcheringHook ISChopTreeCursor ISCleanBloodCursor ISCleanGraffitiCursor ISCompost ISDestroyCursor ISDoubleDoor ISDoubleTileFurniture ISEmptyGraves ISExtinguishCursor ISFarmingCursor ISFarmingCursorMouse ISFeedingTrough ISHutch ISLightSource ISMoveableCursor ISNaturalFloor ISPaintCursor ISPaperCursor ISPickCharacterCursor ISPickDungCursor ISPlace3DItemCursor ISRemovePlantCursor ISScytheGrassCursor ISSelectCursor ISShovelGroundCursor ISSimpleFurniture ISWalkToCursor ISWoodenContainer ISWoodenDoor ISWoodenDoorFrame ISWoodenFloor ISWoodenStairs ISWoodenWall RainCollectorBarrel TrapBO campingCampfire farmingPlot fishingNet

Public Member Functions

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 ()

Static Public Member Functions

static void onDestroy (IsoThumpable thump, IsoPlayer player)
static void removeFromGround (IsoGridSquare square)

Public Attributes

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

Static Public Attributes

static IsoSprite floorCursorSprite

Member Function Documentation

◆ deactivate()

void ISBuildingObject::deactivate ( )

◆ getAPrompt()

string ISBuildingObject::getAPrompt ( )

◆ getBPrompt()

string ISBuildingObject::getBPrompt ( )

◆ getFloorCursorSprite()

IsoSprite ISBuildingObject::getFloorCursorSprite ( )

◆ getLBPrompt()

string ISBuildingObject::getLBPrompt ( )

◆ getRBPrompt()

string ISBuildingObject::getRBPrompt ( )

◆ getSprite()

string ISBuildingObject::getSprite ( )

◆ getYPrompt()

string ISBuildingObject::getYPrompt ( )

◆ haveMaterial()

boolean ISBuildingObject::haveMaterial ( IsoGridSquare square)

◆ init()

void ISBuildingObject::init ( )

◆ initialise()

void ISBuildingObject::initialise ( )

◆ isValid()

boolean ISBuildingObject::isValid ( IsoGridSquare square)

◆ onActionComplete()

void ISBuildingObject::onActionComplete ( )

◆ onDestroy()

void ISBuildingObject::onDestroy ( IsoThumpable thump,
IsoPlayer player )
static

◆ onJoypadDirDown()

void ISBuildingObject::onJoypadDirDown ( JoypadData joypadData)

◆ onJoypadDirLeft()

void ISBuildingObject::onJoypadDirLeft ( JoypadData joypadData)

◆ onJoypadDirRight()

void ISBuildingObject::onJoypadDirRight ( JoypadData joypadData)

◆ onJoypadDirUp()

void ISBuildingObject::onJoypadDirUp ( JoypadData joypadData)

◆ onJoypadPressButton()

void ISBuildingObject::onJoypadPressButton ( integer joypadIndex,
JoypadData joypadData,
integer button )

◆ onTimedActionStart()

void ISBuildingObject::onTimedActionStart ( ISBaseTimedAction action)

◆ onTimedActionStop()

void ISBuildingObject::onTimedActionStop ( ISBaseTimedAction action)

◆ reinit()

void ISBuildingObject::reinit ( )

◆ removeFromGround()

void ISBuildingObject::removeFromGround ( IsoGridSquare square)
static

◆ render()

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

◆ renderOpaqueObjectsInWorld()

void ISBuildingObject::renderOpaqueObjectsInWorld ( number x,
number y,
number z,
IsoGridSquare square )

◆ reset()

void ISBuildingObject::reset ( )

◆ rotateKey()

void ISBuildingObject::rotateKey ( integer key)

◆ rotateMouse()

void ISBuildingObject::rotateMouse ( number x,
number y )

◆ setCanPassThrough()

void ISBuildingObject::setCanPassThrough ( string passThrough)

◆ setDragNilAfterPlace()

void ISBuildingObject::setDragNilAfterPlace ( boolean nilAfter)

◆ setEastSprite()

void ISBuildingObject::setEastSprite ( string sprite)

◆ setNorthSprite()

void ISBuildingObject::setNorthSprite ( string sprite)

◆ setSouthSprite()

void ISBuildingObject::setSouthSprite ( string sprite)

◆ setSprite()

void ISBuildingObject::setSprite ( string sprite)

◆ tryBuild()

void ISBuildingObject::tryBuild ( number x,
number y,
number z )

◆ update()

void ISBuildingObject::update ( )

◆ updateModData()

void ISBuildingObject::updateModData ( )

◆ walkTo()

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

Member Data Documentation

◆ blockAllTheSquare

boolean ISBuildingObject::blockAllTheSquare

◆ blockBuild

boolean ISBuildingObject::blockBuild

◆ build

boolean ISBuildingObject::build

◆ canBarricade

boolean ISBuildingObject::canBarricade

◆ canBeAlwaysPlaced

boolean ISBuildingObject::canBeAlwaysPlaced

◆ canBeBuild

boolean ISBuildingObject::canBeBuild

◆ canBePlastered

boolean ISBuildingObject::canBePlastered

◆ canPassThrough

boolean ISBuildingObject::canPassThrough

◆ chosenSprite

string ISBuildingObject::chosenSprite

◆ clickedUI

boolean ISBuildingObject::clickedUI

◆ completionSound

string ISBuildingObject::completionSound

◆ crossSpeed

number ISBuildingObject::crossSpeed

◆ dismantable

boolean ISBuildingObject::dismantable

◆ dragNilAfterPlace

boolean ISBuildingObject::dragNilAfterPlace

◆ east

boolean ISBuildingObject::east

◆ eastSprite

string ISBuildingObject::eastSprite

◆ floorCursorSprite

IsoSprite ISBuildingObject::floorCursorSprite
static

◆ hoppable

boolean ISBuildingObject::hoppable

◆ isContainer

boolean ISBuildingObject::isContainer

◆ isCorner

boolean ISBuildingObject::isCorner

◆ isDoor

boolean ISBuildingObject::isDoor

◆ isDoorFrame

boolean ISBuildingObject::isDoorFrame

◆ isFloor

boolean ISBuildingObject::isFloor

◆ isLeftDown

boolean ISBuildingObject::isLeftDown

◆ isThumpable

boolean ISBuildingObject::isThumpable

◆ isWallLike

boolean ISBuildingObject::isWallLike

◆ modData

table ISBuildingObject::modData

◆ north

boolean ISBuildingObject::north

◆ northSprite

string ISBuildingObject::northSprite

◆ nSprite

integer ISBuildingObject::nSprite

◆ RENDER_SPRITE

IsoSprite ISBuildingObject::RENDER_SPRITE

◆ RENDER_SPRITE_FLOOR

IsoSprite ISBuildingObject::RENDER_SPRITE_FLOOR

◆ RENDER_SPRITE_NAME

string ISBuildingObject::RENDER_SPRITE_NAME

◆ south

boolean ISBuildingObject::south

◆ southSprite

string ISBuildingObject::southSprite

◆ sprite

string ISBuildingObject::sprite

◆ square

IsoGridSquare ISBuildingObject::square

◆ thumpDmg

number ISBuildingObject::thumpDmg

◆ west

boolean ISBuildingObject::west

◆ xJoypad

number ISBuildingObject::xJoypad

◆ yJoypad

number ISBuildingObject::yJoypad

◆ zJoypad

number ISBuildingObject::zJoypad

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