Package zombie.ai.astar
Class AStarPathMap
java.lang.Object
zombie.ai.astar.AStarPathMap
public class AStarPathMap
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description TileBasedMapmap -
Constructor Summary
Constructors Constructor Description AStarPathMap(TileBasedMap map) -
Method Summary
Modifier and Type Method Description voidDoPrecalcFile(AStarPathFinder finder)intgetFreeIndex(IsoGameCharacter character)floatgetMovementCost(Mover mover, int sx, int sy, int sz, int tx, int ty, int tz)IsoGridSquaregetNode(int x, int y, int z)protected booleanisValidLocation(Mover mover, int sx, int sy, int sz, int x, int y, int z, int lx, int ly, int lz)voidLoadPrecalcFlle()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
map
-
-
Constructor Details
-
AStarPathMap
-
-
Method Details
-
LoadPrecalcFlle
public void LoadPrecalcFlle() throws java.io.FileNotFoundException, java.io.IOException- Throws:
java.io.FileNotFoundExceptionjava.io.IOException
-
DoPrecalcFile
-
getFreeIndex
-
getMovementCost
-
isValidLocation
protected boolean isValidLocation(Mover mover, int sx, int sy, int sz, int x, int y, int z, int lx, int ly, int lz) -
getNode
-