Class UnitAssembler

All Implemented Interfaces:
Comparable<Content>, Senseable

public class UnitAssembler extends PayloadBlock
  • Field Details

    • sideRegion1

      public arc.graphics.g2d.TextureRegion sideRegion1
    • sideRegion2

      public arc.graphics.g2d.TextureRegion sideRegion2
    • areaSize

      public int areaSize
    • droneType

      public UnitType droneType
    • dronesCreated

      public int dronesCreated
    • droneConstructTime

      public float droneConstructTime
    • capacities

      public int[] capacities
    • plans

      public arc.struct.Seq<UnitAssembler.AssemblerUnitPlan> plans
    • consPayload

      @Nullable protected ConsumePayloadDynamic consPayload
    • consItem

      @Nullable protected ConsumeItemDynamic consItem
  • Constructor Details

    • UnitAssembler

      public UnitAssembler(String name)
  • Method Details

    • getRect

      public arc.math.geom.Rect getRect(arc.math.geom.Rect rect, float x, float y, int rotation)
    • 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
    • canPlaceOn

      public boolean canPlaceOn(Tile tile, Team team, int rotation)
      Overrides:
      canPlaceOn in class Block
      Returns:
      whether this block can be placed on the specified tile.
    • setBars

      public void setBars()
      Overrides:
      setBars in class Block
    • drawPlanRegion

      public void drawPlanRegion(BuildPlan plan, arc.util.Eachable<BuildPlan> list)
      Overrides:
      drawPlanRegion in class Block
    • icons

      public arc.graphics.g2d.TextureRegion[] icons()
      Overrides:
      icons in class Block
    • init

      public void init()
      Description copied from class: Block
      Called after all blocks are created.
      Overrides:
      init 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
    • assemblerUnitSpawned

      public static void assemblerUnitSpawned(Tile tile)
    • assemblerDroneSpawned

      public static void assemblerDroneSpawned(Tile tile, int id)