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

Static Public Member Functions

static boolean stringStarts (string String, string Start)
static boolean stringEnds (string String, string End)
static string trim (string s)
static string[] splitJavaStyle (string pString, string pPattern)
static integer indexOf (string table1, unknown value)
static boolean tableContains (string table2, unknown value)
static IsoGridSquare[] getNextTiles (IsoCell cell, IsoGridSquare startingGrid, number range)
static boolean walk (IsoPlayer playerObj, IsoGridSquare square, boolean keepActions)
static boolean walkAdj (IsoPlayer playerObj, IsoGridSquare square, boolean keepActions, IsoGridSquare[] excludeList)
static boolean walkAdjTest (IsoPlayer playerObj, IsoGridSquare square)
static boolean walkAdjAltTest (IsoPlayer playerObj, IsoGridSquare square, IsoGridSquare altSquare, boolean keepActions)
static IsoGridSquare getCorrectSquareForWall (IsoPlayer playerObj, IsoGridSquare square)
static boolean walkAdjWall (IsoPlayer playerObj, IsoGridSquare square, boolean north, boolean keepActions)
static boolean walkAdjWindowOrDoor (IsoPlayer playerObj, IsoGridSquare square, IsoObject item, boolean keepActions)
static boolean walkAdjFence (IsoPlayer playerObj, IsoGridSquare square, IsoObject object, boolean keepActions)
static boolean walkToContainer (ItemContainer container, integer playerNum)
static boolean haveToBeTransfered (IsoPlayer player, InventoryItem item, boolean dontWalk)
static number round (number num, integer idp)
static void updatePerksXp (PerkFactory::Perk perks, IsoPlayer player)
static InventoryItem equipItems (IsoPlayer _player, InventoryItem|string _primItemToEquip, InventoryItem|string _scndItemToEquip)
static void okModal (string _text, boolean _centered, number _width, number _height, number _posX, number _posY)
static boolean walkToObject (IsoPlayer _player, IsoObject _object, boolean _cancelTA)
static void weaponLowerCondition (HandWeapon _weapon, IsoPlayer _character, boolean _replace, integer _chance)
static isEquipped (InventoryItem _item, IsoPlayer _player)
static string[] split (string inputstr, string sep)
static umbrella::RGB getConditionRGB (integer condition)
static boolean isSquareAdjacentToSquare (IsoGridSquare _square1, IsoGridSquare _square2)
static integer countItemsRecursive (ItemContainer[] _containerList, integer _itemsNum)
static ItemContainer findRootInventory (ItemContainer _inventory)
static boolean roughlyEqual (number _value, number _value2, number _delta)
static number lerp (number _sourceValue, number _destinationValue, number _stepRate, number _finalStepRatio)
static void exportGlobals (boolean _print, boolean _save, boolean _test)

Member Function Documentation

◆ countItemsRecursive()

integer luautils::countItemsRecursive ( ItemContainer[] _containerList,
integer _itemsNum )
static

◆ equipItems()

InventoryItem luautils::equipItems ( IsoPlayer _player,
InventoryItem|string _primItemToEquip,
InventoryItem|string _scndItemToEquip )
static

◆ exportGlobals()

void luautils::exportGlobals ( boolean _print,
boolean _save,
boolean _test )
static

◆ findRootInventory()

ItemContainer luautils::findRootInventory ( ItemContainer _inventory)
static

◆ getConditionRGB()

umbrella::RGB luautils::getConditionRGB ( integer condition)
static

◆ getCorrectSquareForWall()

IsoGridSquare luautils::getCorrectSquareForWall ( IsoPlayer playerObj,
IsoGridSquare square )
static

◆ getNextTiles()

IsoGridSquare[] luautils::getNextTiles ( IsoCell cell,
IsoGridSquare startingGrid,
number range )
static

◆ haveToBeTransfered()

boolean luautils::haveToBeTransfered ( IsoPlayer player,
InventoryItem item,
boolean dontWalk )
static

◆ indexOf()

integer luautils::indexOf ( string table1,
unknown value )
static

◆ isEquipped()

luautils::isEquipped ( InventoryItem _item,
IsoPlayer _player )
static

◆ isSquareAdjacentToSquare()

boolean luautils::isSquareAdjacentToSquare ( IsoGridSquare _square1,
IsoGridSquare _square2 )
static

◆ lerp()

number luautils::lerp ( number _sourceValue,
number _destinationValue,
number _stepRate,
number _finalStepRatio )
static

◆ okModal()

void luautils::okModal ( string _text,
boolean _centered,
number _width,
number _height,
number _posX,
number _posY )
static

◆ roughlyEqual()

boolean luautils::roughlyEqual ( number _value,
number _value2,
number _delta )
static

◆ round()

number luautils::round ( number num,
integer idp )
static

◆ split()

string[] luautils::split ( string inputstr,
string sep )
static

◆ splitJavaStyle()

string[] luautils::splitJavaStyle ( string pString,
string pPattern )
static

◆ stringEnds()

boolean luautils::stringEnds ( string String,
string End )
static

◆ stringStarts()

boolean luautils::stringStarts ( string String,
string Start )
static

◆ tableContains()

boolean luautils::tableContains ( string table2,
unknown value )
static

◆ trim()

string luautils::trim ( string s)
static

◆ updatePerksXp()

void luautils::updatePerksXp ( PerkFactory::Perk perks,
IsoPlayer player )
static

◆ walk()

boolean luautils::walk ( IsoPlayer playerObj,
IsoGridSquare square,
boolean keepActions )
static

◆ walkAdj()

boolean luautils::walkAdj ( IsoPlayer playerObj,
IsoGridSquare square,
boolean keepActions,
IsoGridSquare[] excludeList )
static

◆ walkAdjAltTest()

boolean luautils::walkAdjAltTest ( IsoPlayer playerObj,
IsoGridSquare square,
IsoGridSquare altSquare,
boolean keepActions )
static

◆ walkAdjFence()

boolean luautils::walkAdjFence ( IsoPlayer playerObj,
IsoGridSquare square,
IsoObject object,
boolean keepActions )
static

◆ walkAdjTest()

boolean luautils::walkAdjTest ( IsoPlayer playerObj,
IsoGridSquare square )
static

◆ walkAdjWall()

boolean luautils::walkAdjWall ( IsoPlayer playerObj,
IsoGridSquare square,
boolean north,
boolean keepActions )
static

◆ walkAdjWindowOrDoor()

boolean luautils::walkAdjWindowOrDoor ( IsoPlayer playerObj,
IsoGridSquare square,
IsoObject item,
boolean keepActions )
static

◆ walkToContainer()

boolean luautils::walkToContainer ( ItemContainer container,
integer playerNum )
static

◆ walkToObject()

boolean luautils::walkToObject ( IsoPlayer _player,
IsoObject _object,
boolean _cancelTA )
static

◆ weaponLowerCondition()

void luautils::weaponLowerCondition ( HandWeapon _weapon,
IsoPlayer _character,
boolean _replace,
integer _chance )
static

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