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 classPath.Step -
Field Summary
-
Constructor Summary
Constructors Constructor Description Path() -
Method Summary
Modifier and Type Method Description voidappendStep(int x, int y, int z)booleancontains(int x, int y, int z)floatcostPerStep()static Path.StepcreateStep()intgetLength()Path.StepgetStep(int index)intgetX(int index)intgetY(int index)intgetZ(int index)voidprependStep(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)
-