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 class
AStarPathFinder.PathFindProgress
-
Field Summary
Fields Modifier and Type Field Description boolean
allowDiagMovement
IsoGameCharacter
character
int
cyclesPerSlice
int
delay
static int
IDToUseInSort
java.util.ArrayList
IsoGridSquaresUnfurled
int
maxSearchDistance
static int
NumPathfinds
AStarPathFinder.PathFindProgress
progress
int
startX
int
startY
int
startZ
int
targetX
int
targetY
int
targetZ
-
Constructor Summary
Constructors Constructor Description AStarPathFinder(IsoGameCharacter gameCharacter, AStarPathMap aStarPathMap, int int1, boolean boolean1, AStarHeuristic aStarHeuristic)
-
Method Summary
Modifier and Type Method Description protected void
addToClosed(IsoGridSquare square)
protected void
addToOpen(int int1, int int2, IsoGridSquare square)
AStarPathFinder.PathFindProgress
Cycle(int int1)
AStarPathFinder.PathFindProgress
Cycle(int int1, PathfindManager.PathfindJob pathfindJob)
Path
findPath(int int1, Mover mover, int int2, int int3, int int4, int int5, int int6, int int7)
Path
findPath(int int1, Mover mover, int int2, int int3, int int4, int int5, int int6, int int7, PathfindManager.PathfindJob pathfindJob)
AStarPathFinder.PathFindProgress
findPathActual(Mover mover, int int1, int int2, int int3, int int4, int int5, int int6)
AStarPathFinder.PathFindProgress
findPathActual(Mover mover, int int1, int int2, int int3, int int4, int int5, int int6, boolean boolean1)
void
findPathActualZombie(Mover mover, int int1, int int2, int int3, int int4, int int5, int int6)
AStarPathFinder.PathFindProgress
findPathSlice(int int1, IPathfinder iPathfinder, Mover mover, int int2, int int3, int int4, int int5, int int6, int int7)
protected IsoGridSquare
getFirstInOpen()
int
getFreeIndex(IsoGameCharacter gameCharacter)
float
getHeuristicCost(Mover mover, int int1, int int2, int int3, int int4, int int5, int int6)
Path
getPath()
protected boolean
inClosedList(IsoGridSquare square)
protected boolean
inOpenList(IsoGridSquare square)
protected void
removeFromClosed(IsoGridSquare square)
protected void
removeFromOpen(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
-