Class PathPoint


  • public class PathPoint
    extends java.lang.Object
    The type Path point.
    • Constructor Detail

      • PathPoint

        public PathPoint​(float x,
                         float y)
        Instantiates a new Path point.
        Parameters:
        x - the x
        y - the y
    • Method Detail

      • reset

        public void reset()
        Reset.
      • isSelected

        public boolean isSelected()
        Is selected boolean.
        Returns:
        the boolean
      • setSelected

        public void setSelected​(boolean selected)
        Sets selected.
        Parameters:
        selected - the selected
      • setCompleteCost

        public void setCompleteCost​(float completeCost)
        Sets complete cost.
        Parameters:
        completeCost - the complete cost
      • getCompleteCost

        public float getCompleteCost()
        Gets complete cost.
        Returns:
        the complete cost
      • getCurrentCost

        public float getCurrentCost()
        Gets current cost.
        Returns:
        the current cost
      • setCurrentCost

        public void setCurrentCost​(float currentCost)
        Sets current cost.
        Parameters:
        currentCost - the current cost
      • getX

        public float getX()
        Gets x.
        Returns:
        the x
      • getY

        public float getY()
        Gets y.
        Returns:
        the y
      • getNeighbors

        public java.util.List<PathPoint> getNeighbors()
        Gets neighbors.
        Returns:
        the neighbors
      • getParent

        public PathPoint getParent()
        Gets parent.
        Returns:
        the parent
      • setParent

        public void setParent​(PathPoint parent)
        Sets parent.
        Parameters:
        parent - the parent