Class UnitAssembler

All Implemented Interfaces:
Comparable<Content>, Senseable

public class UnitAssembler extends PayloadBlock
  • Field Details

  • Constructor Details

    • UnitAssembler

      public UnitAssembler(String name)
  • Method Details

    • getRect

      public Rect getRect(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, Eachable<BuildPlan> list)
      Overrides:
      drawPlanRegion in class Block
    • icons

      public 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)