Interface Pathfinder.PathResult
- Enclosing interface:
Pathfinder
public static interface Pathfinder.PathResult
Represents the result of a pathfinding calculation
-
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks whether the final point can be reachedintAll currently calculated points to follow along the path to reach the destination location
-
Method Details
-
getPoints
All currently calculated points to follow along the path to reach the destination locationWill return points the entity has already moved past, see
getNextPointIndex()- Returns:
- List of points
-
getNextPointIndex
int getNextPointIndex()- Returns:
- Returns the index of the current point along the points returned in
getPoints()the entity is trying to reach. This value will be higher than the maximum index ofgetPoints()if this path finding is done.
-
getNextPoint
-
getFinalPoint
-
canReachFinalPoint
boolean canReachFinalPoint()Checks whether the final point can be reached- Returns:
- whether the final point can be reached
- See Also:
-