All Implemented Interfaces:
Comparable<Content>, Senseable, Autotiler

public class Duct extends Block implements Autotiler
  • Field Details

    • speed

      public float speed
    • armored

      public boolean armored
    • transparentColor

      public arc.graphics.Color transparentColor
    • topRegions

      public arc.graphics.g2d.TextureRegion[] topRegions
    • botRegions

      public arc.graphics.g2d.TextureRegion[] botRegions
    • bridgeReplacement

      @Nullable public Block bridgeReplacement
    • junctionReplacement

      @Nullable public Block junctionReplacement
  • Constructor Details

    • Duct

      public Duct(String name)
  • Method Details

    • 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
    • init

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

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

      public boolean blendsArmored(Tile tile, int rotation, int otherx, int othery, int otherrot, Block otherblock)
      Specified by:
      blendsArmored in interface Autotiler
    • blends

      public boolean blends(Tile tile, int rotation, int otherx, int othery, int otherrot, Block otherblock)
      Specified by:
      blends in interface Autotiler
    • icons

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

      public Block getReplacement(BuildPlan req, arc.struct.Seq<BuildPlan> plans)
      Overrides:
      getReplacement in class Block
      Returns:
      a possible replacement for this block when placed in a line by the player.
    • handlePlacementLine

      public void handlePlacementLine(arc.struct.Seq<BuildPlan> plans)
      Description copied from class: Block
      Mutates the given list of plans used during line placement.
      Overrides:
      handlePlacementLine in class Block