Module ElementWithState

Abstract class to define elements with a getState method.

Element class:

Extends: Element

Extended by:

Functions

getState () Deprecated: Returns the activation state of the element.
mockGetClosure () Mock only, not in-game: Bundles the object into a closure so functions can be called with "." instead of ":".


Functions

getState ()
Deprecated: Returns the activation state of the element.

This method is deprecated: element-specific methods should be used instead.

Returns:

    0/1 1 when the element is on, 0 otherwise.
mockGetClosure ()
Mock only, not in-game: Bundles the object into a closure so functions can be called with "." instead of ":".

Returns:

    table A table encompasing the api calls of object.

See also:

generated by LDoc 1.4.6 Last updated 2022-12-01 00:35:59