Package zombie
Class PathfindManager
java.lang.Object
zombie.PathfindManager
public class PathfindManager
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classPathfindManager.PathfindJobclassPathfindManager.PathfindThread -
Field Summary
Fields Modifier and Type Field Description intCurrentstatic intFailedPathfindManager.PathfindJobHighestJobstatic floatHighestPathTimestatic PathfindManagerinstanceintmaxInBatchintMaxThreadsjava.util.HashMapPathfindstatic intSucceededstatic floatSurvivorPathTimePathfindManager.PathfindThread[]threadsstatic floatZombiePathTime -
Constructor Summary
Constructors Constructor Description PathfindManager() -
Method Summary
Modifier and Type Method Description voidabortJob(Mover mover)voidAddJob(IPathfinder pathfinder, Mover mover, int sx, int sy, int sz, int tx, int ty, int tz)voidAddJob(IPathfinder pathfinder, Mover mover, int sx, int sy, int sz, int tx, int ty, int tz, boolean bDoClosest)booleanallPaused()voidDoDebugJob(int sx, int sy, int sz, int tx, int ty, int tz)AStarPathFindergetFinder()voidinit()voidpause()voidreset()voidresume()voidstop()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
instance
-
MaxThreads
public int MaxThreads -
Current
public int Current -
maxInBatch
public int maxInBatch -
Failed
public static int Failed -
Succeeded
public static int Succeeded -
ZombiePathTime
public static float ZombiePathTime -
SurvivorPathTime
public static float SurvivorPathTime -
Pathfind
public java.util.HashMap Pathfind -
HighestPathTime
public static float HighestPathTime -
HighestJob
-
threads
-
-
Constructor Details
-
PathfindManager
public PathfindManager()
-
-
Method Details
-
allPaused
public boolean allPaused() -
getFinder
-
DoDebugJob
public void DoDebugJob(int sx, int sy, int sz, int tx, int ty, int tz) -
reset
public void reset() -
stop
public void stop() -
init
public void init() -
AddJob
public void AddJob(IPathfinder pathfinder, Mover mover, int sx, int sy, int sz, int tx, int ty, int tz) -
AddJob
public void AddJob(IPathfinder pathfinder, Mover mover, int sx, int sy, int sz, int tx, int ty, int tz, boolean bDoClosest) -
abortJob
-
pause
public void pause() -
resume
public void resume()
-