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 tileBasedMap) -
Method Summary
Modifier and Type Method Description voidDoPrecalcFile(AStarPathFinder aStarPathFinder)intgetFreeIndex(IsoGameCharacter gameCharacter)floatgetMovementCost(Mover mover, int int1, int int2, int int3, int int4, int int5, int int6)IsoGridSquaregetNode(int int1, int int2, int int3)protected booleanisValidLocation(Mover mover, int int1, int int2, int int3, int int4, int int5, int int6, int int7, int int8, int int9)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
public float getMovementCost(Mover mover, int int1, int int2, int int3, int int4, int int5, int int6) -
isValidLocation
protected boolean isValidLocation(Mover mover, int int1, int int2, int int3, int int4, int int5, int int6, int int7, int int8, int int9) -
getNode
-