Package com.valhalla.sdk.api.pathing
Class MoveTask
java.lang.Object
com.valhalla.sdk.api.pathing.MoveTask
Immutable result of analyzing the next locally executable portion of a route.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether this task contains a normal walk destination.Returns the farthest locally executable route tile, when available.getNext()Returns the immediate route tile after the current cursor, when available.intReturns the analyzed index in the original route.Returns the condition found while analyzing the route.toString()
-
Method Details
-
getSituation
Returns the condition found while analyzing the route.- Returns:
- the condition found while analyzing the route
-
getDestination
Returns the farthest locally executable route tile, when available.- Returns:
- the farthest locally executable route tile, when available
-
getNext
Returns the immediate route tile after the current cursor, when available.- Returns:
- the immediate route tile after the current cursor, when available
-
getRouteIndex
public int getRouteIndex()Returns the analyzed index in the original route.- Returns:
- the analyzed index in the original route
-
canIssueWalk
public boolean canIssueWalk()Returns whether this task contains a normal walk destination.- Returns:
- whether this task contains a normal walk destination
-
toString
-