Class BaseTurret

All Implemented Interfaces:
Comparable<Content>, Senseable
Direct Known Subclasses:
BuildTurret, ReloadTurret, TractorBeamTurret

public class BaseTurret extends Block
  • Field Details

    • range

      public float range
    • placeOverlapMargin

      public float placeOverlapMargin
    • rotateSpeed

      public float rotateSpeed
    • fogRadiusMultiplier

      public float fogRadiusMultiplier
    • coolEffect

      public Effect coolEffect
      Effect displayed when coolant is used.
    • coolantMultiplier

      public float coolantMultiplier
      How much reload is lowered by for each unit of liquid of heat capacity.
    • coolant

      @Nullable public ConsumeLiquidBase coolant
      If not null, this consumer will be used for coolant.
  • Constructor Details

    • BaseTurret

      public BaseTurret(String name)
  • Method Details

    • init

      public void init()
      Description copied from class: Block
      Called after all blocks are created.
      Overrides:
      init in class Block
    • drawPlace

      public void drawPlace(int x, int y, int rotation, boolean valid)
      Description copied from class: Block
      Drawn when you are placing a block.
      Overrides:
      drawPlace in class Block
    • setStats

      public void setStats()
      Description copied from class: UnlockableContent
      Initializes stats on demand. Should only be called once. Only called before something is displayed.
      Overrides:
      setStats in class Block