Class PlayerRelativeToPoint
java.lang.Object
privbot.query.PlayerRelativeToPoint
Strict cardinal comparisons between the player's tile and an anchor tile. Every test is false
when either point is null or the planes differ.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanplayerEastOf(net.runelite.api.coords.WorldPoint player, net.runelite.api.coords.WorldPoint anchor) Player tile is strictly east ofanchor(higher X).static booleanplayerNorthOf(net.runelite.api.coords.WorldPoint player, net.runelite.api.coords.WorldPoint anchor) Player tile is strictly north ofanchor(higher Y).static booleanplayerSouthOf(net.runelite.api.coords.WorldPoint player, net.runelite.api.coords.WorldPoint anchor) Player tile is strictly south ofanchor(lower Y).static booleanplayerWestOf(net.runelite.api.coords.WorldPoint player, net.runelite.api.coords.WorldPoint anchor) Player tile is strictly west ofanchor(lower X).static booleansamePlane(net.runelite.api.coords.WorldPoint a, net.runelite.api.coords.WorldPoint b) True when both points are non-null and on the same plane.
-
Method Details
-
samePlane
public static boolean samePlane(net.runelite.api.coords.WorldPoint a, net.runelite.api.coords.WorldPoint b) True when both points are non-null and on the same plane. -
playerNorthOf
public static boolean playerNorthOf(net.runelite.api.coords.WorldPoint player, net.runelite.api.coords.WorldPoint anchor) Player tile is strictly north ofanchor(higher Y). -
playerSouthOf
public static boolean playerSouthOf(net.runelite.api.coords.WorldPoint player, net.runelite.api.coords.WorldPoint anchor) Player tile is strictly south ofanchor(lower Y). -
playerEastOf
public static boolean playerEastOf(net.runelite.api.coords.WorldPoint player, net.runelite.api.coords.WorldPoint anchor) Player tile is strictly east ofanchor(higher X). -
playerWestOf
public static boolean playerWestOf(net.runelite.api.coords.WorldPoint player, net.runelite.api.coords.WorldPoint anchor) Player tile is strictly west ofanchor(lower X).
-