Module ElementWithToggle
Abstract class to define elements with activate, deactivate, toggle, and getState method.
Extends: Element > ElementWithState
Extended by:
- AntiGravityGeneratorUnit
 - BaseShieldGeneratorUnit
 - DoorUnit
 - EngineUnit
 - ForceFieldUnit
 - GyroUnit
 - LandingGearUnit
 - LaserEmitterUnit
 - LightUnit
 - ManualSwitchUnit
 - ScreenUnit
 - ShieldGeneratorUnit
 - TransponderUnit
 
See also:
Functions
| activate () | Deprecated: Switches the element on/open. | 
| deactivate () | Deprecated: Switches the element off/open. | 
| toggle () | Toggle the 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
- activate ()
 - 
    Deprecated: Switches the element on/open.
This method is deprecated: element-specific methods should be used instead.
 - deactivate ()
 - 
    Deprecated: Switches the element off/open.
This method is deprecated: element-specific methods should be used instead.
 - toggle ()
 - Toggle the state of the element.
 - 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: