Class ItemBridge

All Implemented Interfaces:
Comparable<Content>, Senseable
Direct Known Subclasses:
BufferedItemBridge, LiquidBridge

public class ItemBridge extends Block
  • Field Details

    • timerCheckMoved

      public final int timerCheckMoved
    • range

      public int range
    • transportTime

      public float transportTime
    • endRegion

      public TextureRegion endRegion
    • bridgeRegion

      public TextureRegion bridgeRegion
    • arrowRegion

      public TextureRegion arrowRegion
    • fadeIn

      public boolean fadeIn
    • moveArrows

      public boolean moveArrows
    • pulse

      public boolean pulse
    • arrowSpacing

      public float arrowSpacing
    • arrowOffset

      public float arrowOffset
    • arrowPeriod

      public float arrowPeriod
    • arrowTimeScl

      public float arrowTimeScl
    • bridgeWidth

      public float bridgeWidth
    • lastBuild

  • Constructor Details

    • ItemBridge

      public ItemBridge(String name)
  • Method Details

    • drawPlanConfigTop

      public void drawPlanConfigTop(BuildPlan plan, Eachable<BuildPlan> list)
      Overrides:
      drawPlanConfigTop in class Block
    • drawBridge

      public void drawBridge(BuildPlan req, float ox, float oy, float flip)
    • 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
    • linkValid

      public boolean linkValid(Tile tile, Tile other)
    • linkValid

      public boolean linkValid(Tile tile, Tile other, boolean checkDouble)
    • positionsValid

      public boolean positionsValid(int x1, int y1, int x2, int y2)
    • findLink

      public Tile findLink(int x, int y)
    • init

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

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

      public void changePlacementPath(Seq<Point2> points, int rotation)
      Description copied from class: Block
      Mutates the given list of points used during line placement.
      Overrides:
      changePlacementPath in class Block