Interface ShipEngineControllerAPI.ShipEngineAPI

Enclosing interface:
ShipEngineControllerAPI

public static interface ShipEngineControllerAPI.ShipEngineAPI
  • Method Details

    • getLocation

      org.lwjgl.util.vector.Vector2f getLocation()
      Returns:
      location, in absolute coordinates.
    • isActive

      boolean isActive()
      Returns:
      whether this engine is currently engaged (some engines are only "active" when a ship system is in use, for example.)
    • isSystemActivated

      boolean isSystemActivated()
      Returns:
      whether this engine is only shown when the ship system is active.
    • getStyleId

      String getStyleId()
    • isDisabled

      boolean isDisabled()
    • disable

      void disable()
    • disable

      void disable(boolean permanent)
    • getContribution

      float getContribution()
      Fraction of total engine power this engine provides.
      Returns:
    • isPermanentlyDisabled

      boolean isPermanentlyDisabled()
    • applyDamage

      void applyDamage(float damAmount, Object source)
    • getMaxHitpoints

      float getMaxHitpoints()
    • getHitpoints

      float getHitpoints()
    • getEngineSlot

      EngineSlotAPI getEngineSlot()
    • setHitpoints

      void setHitpoints(float hp)
    • getEngineColor

      Color getEngineColor()
    • getContrailColor

      Color getContrailColor()
    • repair

      void repair()