Class LocalPathfinder
- java.lang.Object
-
- net.openosrs.api.service.movement.LocalPathfinder
-
@Singleton public class LocalPathfinder extends java.lang.ObjectLocal BFS over one immutable collision grid and captured world-view basis.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLocalPathfinder.RouteStart excluded, destination included.static classLocalPathfinder.StepScene-local tile index, never a world coordinate.
-
Constructor Summary
Constructors Constructor Description LocalPathfinder(SceneService scenes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.LongnearestReachable(int fromX, int fromY, int toX, int toY, int plane)java.util.List<java.lang.Long>reachableSet(int fromX, int fromY, int plane)Reachable scene coordinates packed as x in high bits, y in low bits.LocalPathfinder.Routeroute(int fromX, int fromY, int toX, int toY, int plane)Coordinates are scene-local; returned destination is an actual captured world point.LocalPathfinder.Routeroute(int worldViewId, net.runelite.api.coords.WorldPoint from, net.runelite.api.coords.WorldPoint to)Explicit view; equal actor/scene indices in another view do not share a route basis.LocalPathfinder.Routeroute(net.runelite.api.coords.WorldPoint from, net.runelite.api.coords.WorldPoint to)
-
-
-
Constructor Detail
-
LocalPathfinder
@Inject public LocalPathfinder(SceneService scenes)
-
-
Method Detail
-
route
public LocalPathfinder.Route route(int fromX, int fromY, int toX, int toY, int plane)
Coordinates are scene-local; returned destination is an actual captured world point.
-
route
public LocalPathfinder.Route route(net.runelite.api.coords.WorldPoint from, net.runelite.api.coords.WorldPoint to)
-
route
public LocalPathfinder.Route route(int worldViewId, net.runelite.api.coords.WorldPoint from, net.runelite.api.coords.WorldPoint to)
Explicit view; equal actor/scene indices in another view do not share a route basis.
-
reachableSet
public java.util.List<java.lang.Long> reachableSet(int fromX, int fromY, int plane)Reachable scene coordinates packed as x in high bits, y in low bits.
-
nearestReachable
public java.lang.Long nearestReachable(int fromX, int fromY, int toX, int toY, int plane)
-
-