zombie.ai.astar
Class Path.Step

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

public static class Path.Step
extends java.lang.Object

A single step within the path

Author:
Kevin Glass

Field Summary
 int x
          The x coordinate at the given step
 int y
          The y coordinate at the given step
 int z
           
 
Constructor Summary
Path.Step()
           
Path.Step(int x, int y, int z)
          Create a new step
 
Method Summary
 boolean equals(java.lang.Object other)
           
 int getX()
          get the x coordinate of the new step
 int getY()
          get the y coordinate of the new step
 int getZ()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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 Detail

Path.Step

public Path.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

Path.Step

public Path.Step()
Method Detail

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(Object)

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 java.lang.Object
See Also:
Object.hashCode()