Class PathNode

java.lang.Object
com.ardorcraft.pathfinding.PathNode
All Implemented Interfaces:
Comparable<PathNode>

public class PathNode extends Object implements Comparable<PathNode>
  • Field Details

    • x

      public final int x
    • y

      public final int y
    • z

      public final int z
  • Constructor Details

    • PathNode

      public PathNode(int x, int y, int z)
  • Method Details

    • setParent

      public int setParent(PathNode parent)
    • compareTo

      public int compareTo(PathNode other)
      Specified by:
      compareTo in interface Comparable<PathNode>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getX

      public int getX()
    • getY

      public int getY()
    • getZ

      public int getZ()
    • getCost

      public float getCost()
    • toString

      public String toString()
      Overrides:
      toString in class Object