Class BeamNode

All Implemented Interfaces:
Comparable<Content>, Senseable

public class BeamNode extends PowerBlock
  • Field Details

    • range

      public int range
    • laser

      public TextureRegion laser
    • laserEnd

      public TextureRegion laserEnd
    • laserColor1

      public Color laserColor1
    • laserColor2

      public Color laserColor2
    • pulseScl

      public float pulseScl
    • pulseMag

      public float pulseMag
    • laserWidth

      public float laserWidth
  • Constructor Details

    • BeamNode

      public BeamNode(String name)
  • Method Details

    • setBars

      public void setBars()
      Overrides:
      setBars 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
    • 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
    • changePlacementPath

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