Class Walker
- java.lang.Object
-
- net.openosrs.api.service.movement.Walker
-
@Singleton public class Walker extends java.lang.ObjectClient-thread walk executor. Submission never counts as observed movement.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceWalker.ObstacleCallbackstatic classWalker.State
-
Constructor Summary
Constructors Constructor Description Walker(MovementService movement, LocalPathfinder pathfinder)Compatibility constructor; resolves the API context on the first client-thread operation.Walker(MovementService movement, LocalPathfinder pathfinder, net.runelite.api.Client client, SessionTickClock clock)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()Legacy cancellation returns to IDLE and releases the owned route.Walker.StategetState()net.runelite.api.coords.WorldPointgetTarget()voidonTick()voidsetObstacleCallback(Walker.ObstacleCallback callback)booleanwalkTo(net.runelite.api.coords.WorldPoint destination)Invalid replacement requests preserve the current route and its budgets.booleanwasLastSubmissionAccepted()
-
-
-
Constructor Detail
-
Walker
public Walker(MovementService movement, LocalPathfinder pathfinder)
Compatibility constructor; resolves the API context on the first client-thread operation.
-
Walker
@Inject public Walker(MovementService movement, LocalPathfinder pathfinder, net.runelite.api.Client client, SessionTickClock clock)
-
-
Method Detail
-
getState
public Walker.State getState()
-
getTarget
public net.runelite.api.coords.WorldPoint getTarget()
-
wasLastSubmissionAccepted
public boolean wasLastSubmissionAccepted()
-
setObstacleCallback
public void setObstacleCallback(Walker.ObstacleCallback callback)
-
walkTo
public boolean walkTo(net.runelite.api.coords.WorldPoint destination)
Invalid replacement requests preserve the current route and its budgets.
-
onTick
public void onTick()
-
cancel
public void cancel()
Legacy cancellation returns to IDLE and releases the owned route.
-
-