Package zombie.ai.astar
Class Path
java.lang.Object
zombie.ai.astar.Path
public class Path
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Path.Step
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Path()
-
Method Summary
Modifier and Type Method Description void
appendStep(int x, int y, int z)
boolean
contains(int x, int y, int z)
float
costPerStep()
static Path.Step
createStep()
int
getLength()
Path.Step
getStep(int index)
int
getX(int index)
int
getY(int index)
int
getZ(int index)
void
prependStep(int x, int y, int z)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
cost
public float cost -
stepstore
public static java.util.Stack stepstore
-
-
Constructor Details
-
Path
public Path()
-
-
Method Details
-
costPerStep
public float costPerStep() -
appendStep
public void appendStep(int x, int y, int z) -
contains
public boolean contains(int x, int y, int z) -
getLength
public int getLength() -
getStep
-
getX
public int getX(int index) -
getY
public int getY(int index) -
getZ
public int getZ(int index) -
createStep
-
prependStep
public void prependStep(int x, int y, int z)
-