Class SceneReachability

java.lang.Object
privbot.movement.pathing.SceneReachability

public final class SceneReachability extends Object
One detached flood-fill for ranking many destinations. Never retains a Client or live grid.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final boolean
     
    final net.runelite.api.coords.WorldPoint
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SceneReachability(net.runelite.api.coords.WorldPoint origin, int baseX, int baseY, boolean[][] reachable)
     
    SceneReachability(net.runelite.api.coords.WorldPoint origin, int baseX, int baseY, boolean[][] reachable, int[][] flags)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    capture(net.runelite.api.Client client)
     
    boolean
    contains(net.runelite.api.coords.WorldPoint tile)
     
    boolean
    isOperatorTile(net.runelite.api.coords.WorldPoint tile, net.runelite.api.coords.WorldPoint object)
    Whether standing on tile can operate object (see operatorTile(net.runelite.api.coords.WorldPoint)).
    net.runelite.api.coords.WorldPoint
    nearestTo(net.runelite.api.coords.WorldPoint candidate, int radius)
    Closest reachable tile inside the candidate's square radius, breaking ties by origin distance.
    net.runelite.api.coords.WorldPoint
    operatorTile(net.runelite.api.coords.WorldPoint object)
    The reachable tile to operate a 1x1 object such as a lever from, or null.
    net.runelite.api.coords.WorldPoint
    toward(net.runelite.api.coords.WorldPoint destination, int minimumStep, int minimumImprovement)
    Substantial recovery waypoint closer to the destination, excluding the unloaded scene edge.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • origin

      public final net.runelite.api.coords.WorldPoint origin
    • available

      public final boolean available
  • Constructor Details

    • SceneReachability

      public SceneReachability(net.runelite.api.coords.WorldPoint origin, int baseX, int baseY, boolean[][] reachable)
    • SceneReachability

      public SceneReachability(net.runelite.api.coords.WorldPoint origin, int baseX, int baseY, boolean[][] reachable, int[][] flags)
  • Method Details

    • capture

      public static SceneReachability capture(net.runelite.api.Client client)
    • unavailable

      public static SceneReachability unavailable()
    • contains

      public boolean contains(net.runelite.api.coords.WorldPoint tile)
    • operatorTile

      public net.runelite.api.coords.WorldPoint operatorTile(net.runelite.api.coords.WorldPoint object)
      The reachable tile to operate a 1x1 object such as a lever from, or null.

      The object's own tile when it can be stood on (Mage Bank's lever was pulled from 3090,3956 itself); otherwise, only for a solid object, a cardinal neighbour with no wall between it and the object. Diagonal and wall-separated tiles never qualify: accepting any tile within one square pulled the lever from 3089,3955 outside the web wall.

    • isOperatorTile

      public boolean isOperatorTile(net.runelite.api.coords.WorldPoint tile, net.runelite.api.coords.WorldPoint object)
      Whether standing on tile can operate object (see operatorTile(net.runelite.api.coords.WorldPoint)).
    • nearestTo

      public net.runelite.api.coords.WorldPoint nearestTo(net.runelite.api.coords.WorldPoint candidate, int radius)
      Closest reachable tile inside the candidate's square radius, breaking ties by origin distance.
    • toward

      public net.runelite.api.coords.WorldPoint toward(net.runelite.api.coords.WorldPoint destination, int minimumStep, int minimumImprovement)
      Substantial recovery waypoint closer to the destination, excluding the unloaded scene edge.