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

Public Member Functions

boolean walkTo (number x, number y, number z)
void removeFromGround (IsoGridSquare square)
number getHealth ()
void render (number x, number y, number z, IsoGridSquare square)
boolean isObjectSpriteBlockingWallPlacement (string _sprite, boolean _north)
boolean isValidPerSquare (IsoGridSquare square, SpriteConfigManager::TileInfo tileInfo, boolean _requiresFloor, boolean _extendsN, boolean _extendsW)
boolean isValid (IsoGridSquare square)
IsoGridSquare[] getOccupiedTiles (IsoGridSquare square)
boolean create (number x, number y, number z, boolean north, string sprite)
void setInfo (IsoGridSquare square, boolean north, string sprite, string openSprite)
void rotateKey (integer key)
SpriteConfigManager::FaceInfo getFace ()
SpriteConfigManager::FaceInfo getOpenFace (boolean _north)
void cacheSprites (SpriteConfigManager::FaceInfo _face)
void onTimedActionStart (ISBaseTimedAction action)
 ISBuildIsoEntity (IsoPlayer character, SpriteConfigManager::ObjectInfo objectInfo, number nSprite, ArrayList< ItemContainer > containers, BuildLogic logic)
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 ()

Static Public Member Functions

static SpriteConfigManager::ObjectInfo[] GetAllBuildableEntities ()
static SpriteConfigManager::ObjectInfo[] GetBuildableEntities (IsoPlayer _player)
static boolean ConsumeBuildEntityItems (SpriteConfigManager::ObjectInfo _info, IsoPlayer _player)
static boolean predicateMaterial (InventoryItem item)
static table< string, umbrella::ISBuildIsoEntity::ItemResultGetAllGroundItemsForPlayer (IsoPlayer _player)
Static Public Member Functions inherited from ISBuildingObject
static void onDestroy (IsoThumpable thump, IsoPlayer player)
static void removeFromGround (IsoGridSquare square)

Public Attributes

IsoSprite tileCheck
boolean isWallLike
IsoThumpable previousStageObject
IsoGridSquare sq
boolean blockAllTheSquare
boolean hoppable
boolean isStairs
boolean isFloor
SpriteConfigManager::FaceInfo face
integer nSpriteCache
IsoPlayer character
ArrayList< ItemContainer > containers
string name
boolean objectInfo
boolean craftRecipe
BuildLogic buildPanelLogic
boolean dontNeedFrame
boolean needWindowFrame
boolean needToBeAgainstWall
boolean isPole
ArrayList< string > previousStages
integer bonusHealth
boolean buildLow
table< string, IsoSprite > spriteCache
IsoSprite tileSprite
boolean blockAfterPlace
string corner
boolean noNeedHammer
number maxTime
string craftingBank
string completionSound
boolean canBeLockedByPadlock
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 Attributes inherited from ISBuildingObject
static IsoSprite floorCursorSprite

Constructor & Destructor Documentation

◆ ISBuildIsoEntity()

ISBuildIsoEntity::ISBuildIsoEntity ( IsoPlayer character,
SpriteConfigManager::ObjectInfo objectInfo,
number nSprite,
ArrayList< ItemContainer > containers,
BuildLogic logic )

Member Function Documentation

◆ cacheSprites()

void ISBuildIsoEntity::cacheSprites ( SpriteConfigManager::FaceInfo _face)

◆ ConsumeBuildEntityItems()

boolean ISBuildIsoEntity::ConsumeBuildEntityItems ( SpriteConfigManager::ObjectInfo _info,
IsoPlayer _player )
static

◆ create()

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

◆ GetAllBuildableEntities()

SpriteConfigManager::ObjectInfo[] ISBuildIsoEntity::GetAllBuildableEntities ( )
static

◆ GetAllGroundItemsForPlayer()

table< string, umbrella::ISBuildIsoEntity::ItemResult > ISBuildIsoEntity::GetAllGroundItemsForPlayer ( IsoPlayer _player)
static

◆ GetBuildableEntities()

SpriteConfigManager::ObjectInfo[] ISBuildIsoEntity::GetBuildableEntities ( IsoPlayer _player)
static

◆ getFace()

SpriteConfigManager::FaceInfo ISBuildIsoEntity::getFace ( )

◆ getHealth()

number ISBuildIsoEntity::getHealth ( )

◆ getOccupiedTiles()

IsoGridSquare[] ISBuildIsoEntity::getOccupiedTiles ( IsoGridSquare square)

◆ getOpenFace()

SpriteConfigManager::FaceInfo ISBuildIsoEntity::getOpenFace ( boolean _north)

◆ isObjectSpriteBlockingWallPlacement()

boolean ISBuildIsoEntity::isObjectSpriteBlockingWallPlacement ( string _sprite,
boolean _north )

◆ isValid()

boolean ISBuildIsoEntity::isValid ( IsoGridSquare square)

◆ isValidPerSquare()

boolean ISBuildIsoEntity::isValidPerSquare ( IsoGridSquare square,
SpriteConfigManager::TileInfo tileInfo,
boolean _requiresFloor,
boolean _extendsN,
boolean _extendsW )

◆ onTimedActionStart()

void ISBuildIsoEntity::onTimedActionStart ( ISBaseTimedAction action)

◆ predicateMaterial()

boolean ISBuildIsoEntity::predicateMaterial ( InventoryItem item)
static

◆ removeFromGround()

void ISBuildIsoEntity::removeFromGround ( IsoGridSquare square)

◆ render()

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

◆ rotateKey()

void ISBuildIsoEntity::rotateKey ( integer key)

◆ setInfo()

void ISBuildIsoEntity::setInfo ( IsoGridSquare square,
boolean north,
string sprite,
string openSprite )

◆ walkTo()

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

Member Data Documentation

◆ blockAfterPlace

boolean ISBuildIsoEntity::blockAfterPlace

◆ blockAllTheSquare

boolean ISBuildIsoEntity::blockAllTheSquare

◆ bonusHealth

integer ISBuildIsoEntity::bonusHealth

◆ buildLow

boolean ISBuildIsoEntity::buildLow

◆ buildPanelLogic

BuildLogic ISBuildIsoEntity::buildPanelLogic

◆ canBeLockedByPadlock

boolean ISBuildIsoEntity::canBeLockedByPadlock

◆ character

IsoPlayer ISBuildIsoEntity::character

◆ completionSound

string ISBuildIsoEntity::completionSound

◆ containers

ArrayList<ItemContainer> ISBuildIsoEntity::containers

◆ corner

string ISBuildIsoEntity::corner

◆ craftingBank

string ISBuildIsoEntity::craftingBank

◆ craftRecipe

boolean ISBuildIsoEntity::craftRecipe

◆ dontNeedFrame

boolean ISBuildIsoEntity::dontNeedFrame

◆ face

SpriteConfigManager::FaceInfo ISBuildIsoEntity::face

◆ hoppable

boolean ISBuildIsoEntity::hoppable

◆ isFloor

boolean ISBuildIsoEntity::isFloor

◆ isPole

boolean ISBuildIsoEntity::isPole

◆ isStairs

boolean ISBuildIsoEntity::isStairs

◆ isWallLike

boolean ISBuildIsoEntity::isWallLike

◆ maxTime

number ISBuildIsoEntity::maxTime

◆ name

string ISBuildIsoEntity::name

◆ needToBeAgainstWall

boolean ISBuildIsoEntity::needToBeAgainstWall

◆ needWindowFrame

boolean ISBuildIsoEntity::needWindowFrame

◆ noNeedHammer

boolean ISBuildIsoEntity::noNeedHammer

◆ nSpriteCache

integer ISBuildIsoEntity::nSpriteCache

◆ objectInfo

boolean ISBuildIsoEntity::objectInfo

◆ previousStageObject

IsoThumpable ISBuildIsoEntity::previousStageObject

◆ previousStages

ArrayList<string> ISBuildIsoEntity::previousStages

◆ spriteCache

table<string, IsoSprite> ISBuildIsoEntity::spriteCache

◆ sq

IsoGridSquare ISBuildIsoEntity::sq

◆ tileCheck

IsoSprite ISBuildIsoEntity::tileCheck

◆ tileSprite

IsoSprite ISBuildIsoEntity::tileSprite

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