Class AStarWithTarget
java.lang.Object
com.hypixel.hytale.server.npc.navigation.AStarBase
com.hypixel.hytale.server.npc.navigation.AStarWithTarget
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hypixel.hytale.server.npc.navigation.AStarBase
AStarBase.Progress -
Field Summary
FieldsFields inherited from class com.hypixel.hytale.server.npc.navigation.AStarBase
canMoveDiagonal, evaluator, FULL_STEP_THRESHOLD, HALF_STEP_THRESHOLD, INDEX_FRACTIONAL_BITS, indexToPositionOffsetX, indexToPositionOffsetY, indexToPositionOffsetZ, inverseSearchDirections, is2D, isAvoidingBlockDamage, isRelaxedMoveConstraints, iterations, maxPathLength, nodePool, normalDirections, normalsPerDirection, ON_GRID_THRESHOLD, openNodes, openNodesLimit, optimizedBuildPath, path, pathEnd, POSITION_BITS, POSITION_MASK, POSITION_OFFSET, positionToIndexOffsetX, positionToIndexOffsetY, positionToIndexOffsetZ, progress, projectedX, projectedY, projectedZ, REQUIRED_TARGET_DISTANCE, searchDirectionDistances, searchDirectionIs2D, searchDirectionIsDiagonalMoves, searchDirections, searchDirectionsWorldNormal, startPosition, startPositionIndex, tempDirectionVector, tempPositionVector, totalNodesLimit, visitedBlocks -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDebugHelper(com.hypixel.hytale.logger.HytaleLogger logger) floatlonginitComputePath(Ref<EntityStore> ref, Vector3d start, Vector3d end, AStarEvaluator evaluator, com.hypixel.hytale.server.npc.movement.controllers.MotionController motionController, ProbeMoveData probeMoveData, AStarNodePoolProvider nodePoolProvider, ComponentAccessor<EntityStore> componentAccessor) Methods inherited from class com.hypixel.hytale.server.npc.navigation.AStarBase
addOffsetToIndex, addOpenNode, addOpenNode, addOrUpdateNode, addStartNode, buildBestPath, buildBestPath, buildFurthestPath, buildLongestPath, buildPath, canAdvance, clearPath, computePath, findBestVisitedNode, findBestVisitedNode, getEndPosition, getEvaluator, getIterations, getLength, getOpenCount, getOpenNodes, getPath, getPosition, getProgress, getStartPosition, getStartPositionIndex, getVisitedBlocks, indexFromXYZ, initComputePath, isComputing, measureWalkCost, positionIndexToString, positionToIndex, setCanMoveDiagonal, setMaxPathLength, setOpenNodesLimit, setOptimizedBuildPath, setProgress, setStartPosition, setTotalNodesLimit, updateNode, updateNodeCost, xFromIndex, yFromIndex, zFromIndex
-
Field Details
-
targetPosition
-
targetPositionIndex
protected long targetPositionIndex
-
-
Constructor Details
-
AStarWithTarget
public AStarWithTarget()
-
-
Method Details
-
getTargetPosition
-
getTargetPositionIndex
public long getTargetPositionIndex() -
createDebugHelper
@Nonnull public AStarDebugWithTarget createDebugHelper(@Nonnull com.hypixel.hytale.logger.HytaleLogger logger) - Overrides:
createDebugHelperin classAStarBase
-
findClosestPath
public float findClosestPath()
-