Class PathNodeWithoutTeleports

java.lang.Object
com.prineside.tdi2.pathfinding.PathNodeWithoutTeleports
All Implemented Interfaces:
PathNode

public final class PathNodeWithoutTeleports extends Object implements PathNode
  • Constructor Details

    • PathNodeWithoutTeleports

      public PathNodeWithoutTeleports(short x, short y)
  • Method Details

    • getX

      public short getX()
      Specified by:
      getX in interface PathNode
    • getY

      public short getY()
      Specified by:
      getY in interface PathNode
    • getTeleports

      @Null public int[] getTeleports()
      Specified by:
      getTeleports in interface PathNode
      Returns:
      array of teleport indices, indexed by MoveDirection. If value is equal to -1, it means there's no teleport at that index. May return null if there are no teleports on this node.
    • hashCode

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

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