public class AStarWithTarget extends AStarBase
Class AStarWithTarget. Provides astarwithtarget functionality for the Hytale server.
java.lang.Object > AStarBase > AStarWithTarget
Field Summary
targetPosition
protected
Vector3d
targetPosition
Field targetPosition.
targetPositionIndex
protected
long
targetPositionIndex
Field targetPositionIndex.
progress
final
Progress
progress
Field progress.
node
final
AStarNode
node
Field node.
Method Detail
AStarWithTarget
public
public
AStarWithTarget
()
Method AStarWithTarget.
getTargetPositionIndex
public
long
getTargetPositionIndex
()
Method getTargetPositionIndex.
initComputePath
public
Progress
initComputePath
(@Nonnull final Ref ref, @Nonnull final Vector3d start, @Nonnull final Vector3d end, final AStarEvaluator evaluator, @Nonnull final MotionController motionController, @Nonnull final ProbeMoveData probeMoveData, @Nonnull final AStarNodePoolProvider nodePoolProvider, @Nonnull final ComponentAccessor componentAccessor)
Method initComputePath.
- Parameters:
@Nonnull final Refref@Nonnull final Vector3dstart@Nonnull final Vector3dendfinal AStarEvaluatorevaluator@Nonnull final MotionControllermotionController@Nonnull final ProbeMoveDataprobeMoveData@Nonnull final AStarNodePoolProvidernodePoolProvider@Nonnull final ComponentAccessorcomponentAccessor
findClosestPath
public
float
findClosestPath
()
Method findClosestPath.