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. |
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.