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 int1, int int2, int int3)booleancontains(int int1, int int2, int int3)floatcostPerStep()static Path.StepcreateStep()intgetLength()Path.StepgetStep(int int1)intgetX(int int1)intgetY(int int1)intgetZ(int int1)voidprependStep(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)
-