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 int1, int int2, int int3)
boolean
contains(int int1, int int2, int int3)
float
costPerStep()
static Path.Step
createStep()
int
getLength()
Path.Step
getStep(int int1)
int
getX(int int1)
int
getY(int int1)
int
getZ(int int1)
void
prependStep(int int1, int int2, int int3)
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 int1, int int2, int int3) -
contains
public boolean contains(int int1, int int2, int int3) -
getLength
public int getLength() -
getStep
-
getX
public int getX(int int1) -
getY
public int getY(int int1) -
getZ
public int getZ(int int1) -
createStep
-
prependStep
public void prependStep(int int1, int int2, int int3)
-