Class Path.Step

java.lang.Object
zombie.ai.astar.Path.Step
Enclosing class:
Path

public static class Path.Step extends Object
A single step within the path
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    The x coordinate at the given step
    int
    The y coordinate at the given step
    int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    Step(int x, int y, int z)
    Create a new step
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object other)
     
    int
    get the x coordinate of the new step
    int
    get the y coordinate of the new step
    int
     
    int
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • x

      public int x
      The x coordinate at the given step
    • y

      public int y
      The y coordinate at the given step
    • z

      public int z
  • Constructor Details

    • Step

      public Step(int x, int y, int z)
      Create a new step
      Parameters:
      x - The x coordinate of the new step
      y - The y coordinate of the new step
    • Step

      public Step()
  • Method Details

    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
      See Also:
    • getX

      public int getX()
      get the x coordinate of the new step
      Returns:
      The x coodindate of the new step
    • getY

      public int getY()
      get the y coordinate of the new step
      Returns:
      The y coodindate of the new step
    • getZ

      public int getZ()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      See Also: