Class SceneReachability
java.lang.Object
privbot.movement.pathing.SceneReachability
One detached flood-fill for ranking many destinations. Never retains a Client or live grid.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSceneReachability(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 TypeMethodDescriptionstatic SceneReachabilitycapture(net.runelite.api.Client client) booleancontains(net.runelite.api.coords.WorldPoint tile) booleanisOperatorTile(net.runelite.api.coords.WorldPoint tile, net.runelite.api.coords.WorldPoint object) net.runelite.api.coords.WorldPointnearestTo(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.WorldPointoperatorTile(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.WorldPointtoward(net.runelite.api.coords.WorldPoint destination, int minimumStep, int minimumImprovement) Substantial recovery waypoint closer to the destination, excluding the unloaded scene edge.static SceneReachability
-
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
-
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) -
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.
-