Class ShipLightComponent

All Implemented Interfaces:
com.badlogic.gdx.utils.Json.Serializable

public class ShipLightComponent extends AuraLightComponent
Adds a controllable light source to the player ship.
  • Constructor Details

    • ShipLightComponent

      public ShipLightComponent()
  • Method Details

    • create

      public void create()
      Description copied from class: AuraLightComponent
      Creates the event listener for the light to enable it to be toggled on and off
      Overrides:
      create in class AuraLightComponent
    • toggleLight

      public void toggleLight()
      Toggles the light between an on and off state, if the feature is unlocked.
      Overrides:
      toggleLight in class AuraLightComponent
    • write

      public void write(com.badlogic.gdx.utils.Json json)
      Specified by:
      write in interface com.badlogic.gdx.utils.Json.Serializable
      Overrides:
      write in class Component
    • read

      public void read(com.badlogic.gdx.utils.Json json, com.badlogic.gdx.utils.JsonValue jsonMap)
      Specified by:
      read in interface com.badlogic.gdx.utils.Json.Serializable
      Overrides:
      read in class Component