Class StraightMultiLine

java.lang.Object
com.prineside.tdi2.Shape
com.prineside.tdi2.shapes.StraightMultiLine
All Implemented Interfaces:
Pool.Poolable

public final class StraightMultiLine extends Shape
  • Method Details

    • setWidth

      public void setWidth(float width)
    • setNodesSliced

      public void setNodesSliced(float[] nodes, int nodeCount)
    • setNodes

      public void setNodes(float[] nodes)
      x, y, color
    • getNodeCount

      public int getNodeCount()
    • getMainTexture

      public TextureRegion getMainTexture()
    • setTextureRegion

      public void setTextureRegion(TextureRegion main, TextureRegion edge)
    • appendNode

      public void appendNode(float x, float y, float color, boolean updatePath)
      Parameters:
      updatePath - true, чтобы путь был валидным сразу после добавления. В противном случае нужно вызвать updateAllNodes() после добавления всех нод
    • setNodePosition

      public void setNodePosition(int idx, float x, float y)
    • updateAllNodes

      public void updateAllNodes()
    • setNodeColor

      public void setNodeColor(int nodeIdx, float color)
    • setTint

      public void setTint(Color color)
    • setTintAndAlpha

      public void setTintAndAlpha(Color color, float alpha)
      То же самое, только color.a будет перезаписан
    • getTint

      public Color getTint()
    • draw

      public void draw(Batch batch)
      Specified by:
      draw in class Shape
    • reset

      public void reset()
      Description copied from interface: com.badlogic.gdx.utils.Pool.Poolable
      Resets the object for reuse. Object references should be nulled and fields may be set to default values.