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.5.0 Last updated 2024-09-27 15:22:46