Class LocalPathfinder


  • @Singleton
    public class LocalPathfinder
    extends java.lang.Object
    Local BFS over one immutable collision grid and captured world-view basis.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  LocalPathfinder.Route
      Start excluded, destination included.
      static class  LocalPathfinder.Step
      Scene-local tile index, never a world coordinate.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Long nearestReachable​(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.Route route​(int fromX, int fromY, int toX, int toY, int plane)
      Coordinates are scene-local; returned destination is an actual captured world point.
      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.
      LocalPathfinder.Route route​(net.runelite.api.coords.WorldPoint from, net.runelite.api.coords.WorldPoint to)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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)