Contents
Class AStarWithTarget
java.lang.Object
com.hypixel.hytale.server.npc.navigation.AStarBase
com.hypixel.hytale.server.npc.navigation.AStarWithTarget
Base class for A* using a target suitable for estimate computation
- Since:
- 2018-06-16
-
Nested Class Summary
Nested classes/interfaces inherited from class AStarBase
AStarBase.Progress -
Field Summary
Fields inherited from class AStarBase
FULL_STEP_THRESHOLD, HALF_STEP_THRESHOLD, ON_GRID_THRESHOLD, REQUIRED_TARGET_DISTANCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDebugHelper(HytaleLogger logger) floatorg.joml.Vector3dlonginitComputePath(Ref<EntityStore> ref, org.joml.Vector3d start, org.joml.Vector3d end, AStarEvaluator evaluator, MotionController motionController, ProbeMoveData probeMoveData, AStarNodePoolProvider nodePoolProvider, ComponentAccessor<EntityStore> componentAccessor) Methods inherited from class AStarBase
buildBestPath, buildBestPath, buildFurthestPath, buildLongestPath, clearPath, computePath, findBestVisitedNode, findBestVisitedNode, getEndPosition, getEvaluator, getIterations, getLength, getOpenCount, getOpenNodes, getPath, getPosition, getProgress, getStartPosition, getStartPositionIndex, getVisitedBlocks, indexFromXYZ, initComputePath, isComputing, positionIndexToString, setCanMoveDiagonal, setMaxPathLength, setOpenNodesLimit, setOptimizedBuildPath, setStartPosition, setTotalNodesLimit, xFromIndex, yFromIndex, zFromIndex
-
Constructor Details
-
AStarWithTarget
public AStarWithTarget()
-
-
Method Details
-
getTargetPosition
@Nonnull public org.joml.Vector3d getTargetPosition() -
getTargetPositionIndex
public long getTargetPositionIndex() -
createDebugHelper
- Overrides:
createDebugHelperin classAStarBase
-
findClosestPath
public float findClosestPath()
-