Project Zomboid Lua Docs 42.20.3
Unofficial documentation for Project Zomboid's Lua
Loading...
Searching...
No Matches
ISDeviceBatteryAction Class Reference
Inheritance diagram for ISDeviceBatteryAction:
ISBaseTimedAction ISBaseObject

Public Member Functions

boolean isValid ()
boolean complete ()
void invoke ()
number getDuration ()
integer IsoGridSquare getDeviceDataParameter (IsoPlayer character, InventoryItem|IsoObject|VehiclePart device, string deviceType)
DeviceData getDeviceDataFromParameter (IsoPlayer character, integer|IsoGridSquare parameter)
 ISDeviceBatteryAction (IsoPlayer character, boolean isRemove, InventoryItem secondaryItem, integer|IsoGridSquare parameter)
Public Member Functions inherited from ISBaseTimedAction
boolean isValidStart ()
void isValid ()
boolean isUsingTimeout ()
void update ()
void forceComplete ()
void forceStop ()
void forceCancel ()
number getJobDelta ()
void setJobDelta (number delta)
unknown resetJobDelta ()
boolean waitToStart ()
void interruptWaitToStart ()
void start ()
boolean isStarted ()
void stop ()
void perform ()
number getDuration ()
void create ()
void begin ()
void setCurrentTime (number time)
void setTime (number time)
number adjustMaxTime (number maxTime)
void setActionAnim (CharacterActionAnims|string _action, nil _displayItemModels)
void setOverrideHandModels (InventoryItem _primaryHand, InventoryItem _secondaryHand, boolean _resetModel)
void setOverrideHandModelsString (string _primaryHand, string _secondaryHand, boolean _resetModel)
void overrideWeaponType ()
void restoreWeaponType ()
void setAnimVariable (string _key, string _val)
ISBaseTimedAction addAfter (ISBaseTimedAction action)
void beginAddingActions ()
boolean endAddingActions ()
void getDeltaModifiers (MoveDeltaModifiers deltas)
 ISBaseTimedAction (IsoPlayer character)
Public Member Functions inherited from ISBaseObject
void initialise ()
ISBaseObject derive (string type)
boolean instanceof (unknown object, 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

boolean ignoreHandsWounds
boolean isRemove
InventoryItem secondaryItem
integer IsoGridSquare parameter
DeviceData deviceData
Public Attributes inherited from ISBaseTimedAction
number maxTime
LuaTimedActionNew action
boolean _isAddingActions
number _numAddedActions
IsoPlayer character
boolean stopOnWalk
boolean stopOnRun
boolean stopOnAim
number caloriesModifier
boolean useProgressBar
boolean forceProgressBar
boolean loopedAction
Path path
string name
NetTimedAction netAction
Public Attributes inherited from ISBaseObject
string Type
ISBaseObject SuperType
table< string, table< function, unknown > > __eventListeners

Constructor & Destructor Documentation

◆ ISDeviceBatteryAction()

ISDeviceBatteryAction::ISDeviceBatteryAction ( IsoPlayer character,
boolean isRemove,
InventoryItem secondaryItem,
integer|IsoGridSquare parameter )

Member Function Documentation

◆ complete()

boolean ISDeviceBatteryAction::complete ( )

◆ getDeviceDataFromParameter()

DeviceData ISDeviceBatteryAction::getDeviceDataFromParameter ( IsoPlayer character,
integer|IsoGridSquare parameter )

◆ getDeviceDataParameter()

integer IsoGridSquare ISDeviceBatteryAction::getDeviceDataParameter ( IsoPlayer character,
InventoryItem|IsoObject|VehiclePart device,
string deviceType )

◆ getDuration()

number ISDeviceBatteryAction::getDuration ( )

◆ invoke()

void ISDeviceBatteryAction::invoke ( )

◆ isValid()

boolean ISDeviceBatteryAction::isValid ( )

Member Data Documentation

◆ deviceData

DeviceData ISDeviceBatteryAction::deviceData

◆ ignoreHandsWounds

boolean ISDeviceBatteryAction::ignoreHandsWounds

◆ isRemove

boolean ISDeviceBatteryAction::isRemove

◆ parameter

integer IsoGridSquare ISDeviceBatteryAction::parameter

◆ secondaryItem

InventoryItem ISDeviceBatteryAction::secondaryItem

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