Package zombie.ai.astar
Class AStarPathFinder
java.lang.Object
zombie.ai.astar.AStarPathFinder
public class AStarPathFinder
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAStarPathFinder.PathFindProgress -
Field Summary
Fields Modifier and Type Field Description booleanallowDiagMovementIsoGameCharactercharacterintcyclesPerSliceintdelaystatic intIDToUseInSortjava.util.ArrayListIsoGridSquaresUnfurledintmaxSearchDistancestatic intNumPathfindsAStarPathFinder.PathFindProgressprogressintstartXintstartYintstartZinttargetXinttargetYinttargetZ -
Constructor Summary
Constructors Constructor Description AStarPathFinder(IsoGameCharacter gameCharacter, AStarPathMap aStarPathMap, int int1, boolean boolean1, AStarHeuristic aStarHeuristic) -
Method Summary
Modifier and Type Method Description protected voidaddToClosed(IsoGridSquare square)protected voidaddToOpen(int int1, int int2, IsoGridSquare square)AStarPathFinder.PathFindProgressCycle(int int1)AStarPathFinder.PathFindProgressCycle(int int1, PathfindManager.PathfindJob pathfindJob)PathfindPath(int int1, Mover mover, int int2, int int3, int int4, int int5, int int6, int int7)PathfindPath(int int1, Mover mover, int int2, int int3, int int4, int int5, int int6, int int7, PathfindManager.PathfindJob pathfindJob)AStarPathFinder.PathFindProgressfindPathActual(Mover mover, int int1, int int2, int int3, int int4, int int5, int int6)AStarPathFinder.PathFindProgressfindPathActual(Mover mover, int int1, int int2, int int3, int int4, int int5, int int6, boolean boolean1)voidfindPathActualZombie(Mover mover, int int1, int int2, int int3, int int4, int int5, int int6)AStarPathFinder.PathFindProgressfindPathSlice(int int1, IPathfinder iPathfinder, Mover mover, int int2, int int3, int int4, int int5, int int6, int int7)protected IsoGridSquaregetFirstInOpen()intgetFreeIndex(IsoGameCharacter gameCharacter)floatgetHeuristicCost(Mover mover, int int1, int int2, int int3, int int4, int int5, int int6)PathgetPath()protected booleaninClosedList(IsoGridSquare square)protected booleaninOpenList(IsoGridSquare square)protected voidremoveFromClosed(IsoGridSquare square)protected voidremoveFromOpen(int int1, IsoGridSquare square)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
IDToUseInSort
public static int IDToUseInSort -
allowDiagMovement
public boolean allowDiagMovement -
cyclesPerSlice
public int cyclesPerSlice -
delay
public int delay -
maxSearchDistance
public int maxSearchDistance -
progress
-
startX
public int startX -
startY
public int startY -
startZ
public int startZ -
targetX
public int targetX -
targetY
public int targetY -
targetZ
public int targetZ -
NumPathfinds
public static int NumPathfinds -
character
-
IsoGridSquaresUnfurled
public java.util.ArrayList IsoGridSquaresUnfurled
-
-
Constructor Details
-
AStarPathFinder
public AStarPathFinder(IsoGameCharacter gameCharacter, AStarPathMap aStarPathMap, int int1, boolean boolean1, AStarHeuristic aStarHeuristic)
-
-
Method Details
-
findPathActualZombie
public void findPathActualZombie(Mover mover, int int1, int int2, int int3, int int4, int int5, int int6) -
Cycle
-
Cycle
-
findPath
-
findPath
public Path findPath(int int1, Mover mover, int int2, int int3, int int4, int int5, int int6, int int7, PathfindManager.PathfindJob pathfindJob) -
findPathActual
public AStarPathFinder.PathFindProgress findPathActual(Mover mover, int int1, int int2, int int3, int int4, int int5, int int6) -
findPathActual
public AStarPathFinder.PathFindProgress findPathActual(Mover mover, int int1, int int2, int int3, int int4, int int5, int int6, boolean boolean1) -
findPathSlice
public AStarPathFinder.PathFindProgress findPathSlice(int int1, IPathfinder iPathfinder, Mover mover, int int2, int int3, int int4, int int5, int int6, int int7) -
getFreeIndex
-
getHeuristicCost
public float getHeuristicCost(Mover mover, int int1, int int2, int int3, int int4, int int5, int int6) -
getPath
-
addToClosed
-
addToOpen
-
getFirstInOpen
-
inClosedList
-
inOpenList
-
removeFromClosed
-
removeFromOpen
-