Class PathfindingProgress
java.lang.Object
de.bsommerfeld.pathetic.api.pathing.PathfindingProgress
Immutable container for the three core positions in a pathfinding operation.
Holds the start position, the current position being evaluated, and the target position. Used to pass these positions together to pathfinding components.
- Since:
- 5.3.3
-
Constructor Summary
ConstructorsConstructorDescriptionPathfindingProgress(PathPosition startPosition, PathPosition currentPosition, PathPosition targetPosition) -
Method Summary
-
Constructor Details
-
PathfindingProgress
public PathfindingProgress(PathPosition startPosition, PathPosition currentPosition, PathPosition targetPosition)
-
-
Method Details
-
startPosition
Returns the start position of the overall pathfinding process.- Returns:
- the start position
-
currentPosition
Returns the current step (position) of the pathfinding process.- Returns:
- the current position
-
targetPosition
Returns the destination (target) position of the overall pathfinding process.- Returns:
- the target position
-
equals
-
hashCode
public int hashCode() -
toString
-