Uses of Class
de.bsommerfeld.pathetic.api.wrapper.PathPosition
Packages that use PathPosition
Package
Description
-
Uses of PathPosition in de.bsommerfeld.pathetic.api.pathing
Methods in de.bsommerfeld.pathetic.api.pathing that return PathPositionModifier and TypeMethodDescriptionPathfindingProgress.currentPosition()Returns the current step (position) of the pathfinding process.PathfindingProgress.startPosition()Returns the start position of the overall pathfinding process.PathfindingProgress.targetPosition()Returns the destination (target) position of the overall pathfinding process.Methods in de.bsommerfeld.pathetic.api.pathing with parameters of type PathPositionModifier and TypeMethodDescriptiondefault CompletionStage<PathfinderResult>Pathfinder.findPath(PathPosition start, PathPosition target) Tries to find a Path between the twoPathPositions.Pathfinder.findPath(PathPosition start, PathPosition target, EnvironmentContext context) Tries to find a path between the specified start and target positions within the provided environment context.Constructors in de.bsommerfeld.pathetic.api.pathing with parameters of type PathPositionModifierConstructorDescriptionPathfindingProgress(PathPosition startPosition, PathPosition currentPosition, PathPosition targetPosition) -
Uses of PathPosition in de.bsommerfeld.pathetic.api.pathing.heuristic
Methods in de.bsommerfeld.pathetic.api.pathing.heuristic that return PathPositionModifier and TypeMethodDescriptionHeuristicContext.position()The current to-evaluate position.HeuristicContext.startPosition()The overall start position of the pathfinding.HeuristicContext.targetPosition()The overall target position of the pathfinding.Methods in de.bsommerfeld.pathetic.api.pathing.heuristic with parameters of type PathPositionModifier and TypeMethodDescriptiondoubleIHeuristicStrategy.calculateTransitionCost(PathPosition from, PathPosition to) Calculates the actual transition cost between two adjacent positions.doubleLinearHeuristicStrategy.calculateTransitionCost(PathPosition from, PathPosition to) doubleSquaredHeuristicStrategy.calculateTransitionCost(PathPosition from, PathPosition to) Constructors in de.bsommerfeld.pathetic.api.pathing.heuristic with parameters of type PathPositionModifierConstructorDescriptionHeuristicContext(PathPosition position, PathPosition startPosition, PathPosition targetPosition, HeuristicWeights heuristicWeights) -
Uses of PathPosition in de.bsommerfeld.pathetic.api.pathing.hook
Methods in de.bsommerfeld.pathetic.api.pathing.hook that return PathPositionModifier and TypeMethodDescriptionPathfindingContext.currentPosition()The current position of the pathfinding step.Constructors in de.bsommerfeld.pathetic.api.pathing.hook with parameters of type PathPosition -
Uses of PathPosition in de.bsommerfeld.pathetic.api.pathing.processing.context
Methods in de.bsommerfeld.pathetic.api.pathing.processing.context that return PathPositionModifier and TypeMethodDescriptionNodeEvaluationContext.getCurrentPathPosition()Returns the PathPosition currently being evaluated.NodeEvaluationContext.getPreviousPathPosition()Returns the PathPosition from which thecurrent PathPositionis being reached.default PathPositionNodeEvaluationContext.getStartPathPosition()Convenience method to access the start PathPosition of the overall search.SearchContext.getStartPathPosition()Returns the starting PathPosition of the path search.default PathPositionNodeEvaluationContext.getTargetPathPosition()Convenience method to access the target PathPosition of the overall search.SearchContext.getTargetPathPosition()Returns the target (or goal) PathPosition of the path search. -
Uses of PathPosition in de.bsommerfeld.pathetic.api.pathing.result
Methods in de.bsommerfeld.pathetic.api.pathing.result that return PathPositionModifier and TypeMethodDescriptionPath.getEnd()Returns the target position of the pathPath.getStart()Returns the start position of the pathMethods in de.bsommerfeld.pathetic.api.pathing.result that return types with arguments of type PathPositionModifier and TypeMethodDescriptionPath.collect()Returns a new Collection of the Path Positions of the path.Method parameters in de.bsommerfeld.pathetic.api.pathing.result with type arguments of type PathPositionModifier and TypeMethodDescriptionPath.mutatePositions(ParameterizedSupplier<PathPosition> mutator) Deprecated. -
Uses of PathPosition in de.bsommerfeld.pathetic.api.provider
Methods in de.bsommerfeld.pathetic.api.provider with parameters of type PathPositionModifier and TypeMethodDescriptiondefault NavigationPointNavigationPointProvider.getNavigationPoint(PathPosition position) Gets the navigation point at the given position.NavigationPointProvider.getNavigationPoint(PathPosition position, EnvironmentContext environmentContext) Retrieves the navigation point at the specified position within the provided environment context. -
Uses of PathPosition in de.bsommerfeld.pathetic.api.wrapper
Methods in de.bsommerfeld.pathetic.api.wrapper that return PathPositionModifier and TypeMethodDescriptionPathPosition.add(double x, double y, double z) Creates a newPathPositionby adding the given values to the coordinates of this position.PathPosition.add(PathVector vector) Creates a newPathPositionby adding the components of the given vector to the coordinates of this position.PathPosition.clone()PathPosition.floor()Creates a newPathPositionwith the coordinates floored to the nearest integer values.PathPosition.interpolate(PathPosition other, double progress) Deprecated.marked for removalPathPosition.mid()Creates a newPathPositionwith the coordinates set to the center of the block they are in.PathPosition.midPoint(PathPosition end) Calculates the midpoint between this position and another position.PathPosition.setX(double x) Creates a newPathPositionwith the same coordinates as this one, but with the x-coordinate set to the given value.PathPosition.setY(double y) Creates a newPathPositionwith the same coordinates as this one, but with the y-coordinate set to the given value.PathPosition.setZ(double z) Creates a newPathPositionwith the same coordinates as this one, but with the z-coordinate set to the given value.PathPosition.subtract(double x, double y, double z) Creates a newPathPositionby subtracting the given values from the coordinates of this position.PathPosition.subtract(PathVector vector) Creates a newPathPositionby subtracting the components of the given vector from the coordinates of this position.Methods in de.bsommerfeld.pathetic.api.wrapper with parameters of type PathPositionModifier and TypeMethodDescriptiondoublePathPosition.distance(PathPosition otherPosition) Calculates the Euclidean distance between this position and another position.doublePathPosition.distanceSquared(PathPosition otherPosition) Calculates the squared distance between this position and another position.PathPosition.interpolate(PathPosition other, double progress) Deprecated.marked for removalbooleanPathPosition.isInSameBlock(PathPosition otherPosition) Deprecated.useequals(Object)doublePathPosition.manhattanDistance(PathPosition otherPosition) Deprecated.marked for removalPathPosition.midPoint(PathPosition end) Calculates the midpoint between this position and another position.doublePathPosition.octileDistance(PathPosition otherPosition) Deprecated.marked for removal -
Uses of PathPosition in de.bsommerfeld.pathetic.engine
Methods in de.bsommerfeld.pathetic.engine that return PathPositionConstructors in de.bsommerfeld.pathetic.engine with parameters of type PathPositionModifierConstructorDescriptionNode(PathPosition position, PathPosition start, PathPosition target, HeuristicWeights heuristicWeights, IHeuristicStrategy heuristicStrategy, int depth) Creates a new Node with the specified parameters. -
Uses of PathPosition in de.bsommerfeld.pathetic.engine.pathfinder
Fields in de.bsommerfeld.pathetic.engine.pathfinder with type parameters of type PathPositionModifier and TypeFieldDescriptionprotected static final Set<PathPosition>AbstractPathfinder.EMPTY_PATH_POSITIONSMethods in de.bsommerfeld.pathetic.engine.pathfinder with parameters of type PathPositionModifier and TypeMethodDescriptionprotected NodeAbstractPathfinder.createStartNode(PathPosition startPos, PathPosition targetPos) Creates the initialNodefor the start position.AbstractPathfinder.findPath(PathPosition start, PathPosition target, EnvironmentContext environmentContext) protected abstract voidAbstractPathfinder.processSuccessors(PathPosition requestStart, PathPosition requestTarget, Node currentNode, org.jheaps.tree.FibonacciHeap<Double, Node> openSet, SearchContext searchContext) Abstract method representing the core logic of processing successor nodes for a givencurrentNode.protected voidAStarPathfinder.processSuccessors(PathPosition start, PathPosition target, Node currentNode, org.jheaps.tree.FibonacciHeap<Double, Node> openSet, SearchContext searchContext) Processes the successors of the current node, checking if they're in the open or closed set, calculating costs, validating traversability, and updating the open set as needed. -
Uses of PathPosition in de.bsommerfeld.pathetic.engine.pathfinder.processing
Methods in de.bsommerfeld.pathetic.engine.pathfinder.processing that return PathPositionModifier and TypeMethodDescriptionNodeEvaluationContextImpl.getCurrentPathPosition()NodeEvaluationContextImpl.getPreviousPathPosition()SearchContextImpl.getStartPathPosition()SearchContextImpl.getTargetPathPosition()Constructors in de.bsommerfeld.pathetic.engine.pathfinder.processing with parameters of type PathPositionModifierConstructorDescriptionSearchContextImpl(PathPosition startPathPosition, PathPosition targetPathPosition, PathfinderConfiguration pathfinderConfiguration, NavigationPointProvider navigationPointProvider, EnvironmentContext environmentContext) -
Uses of PathPosition in de.bsommerfeld.pathetic.engine.result
Methods in de.bsommerfeld.pathetic.engine.result that return PathPositionMethods in de.bsommerfeld.pathetic.engine.result that return types with arguments of type PathPositionMethod parameters in de.bsommerfeld.pathetic.engine.result with type arguments of type PathPositionModifier and TypeMethodDescriptionvoidPathImpl.forEach(Consumer<? super PathPosition> action) PathImpl.mutatePositions(ParameterizedSupplier<PathPosition> mutator) Deprecated.Delegates toPathUtils- you should use that too!static PathPathUtils.mutatePositions(Path path, ParameterizedSupplier<PathPosition> mutator) Applies a transformation function to every position in the path.Constructors in de.bsommerfeld.pathetic.engine.result with parameters of type PathPositionModifierConstructorDescriptionPathImpl(PathPosition start, PathPosition end, Iterable<PathPosition> positions) Constructor parameters in de.bsommerfeld.pathetic.engine.result with type arguments of type PathPositionModifierConstructorDescriptionPathImpl(PathPosition start, PathPosition end, Iterable<PathPosition> positions) -
Uses of PathPosition in de.bsommerfeld.pathetic.engine.util
Methods in de.bsommerfeld.pathetic.engine.util that return types with arguments of type PathPositionModifier and TypeMethodDescriptioncom.google.common.hash.BloomFilter<PathPosition>GridRegionData.getBloomFilter()GridRegionData.getRegionalExaminedPositions()