public class SimplePathing extends ClientAccessor<ClientContext>
ctx
Constructor and Description |
---|
SimplePathing(ClientContext ctx) |
Modifier and Type | Method and Description |
---|---|
double |
collisionDistance(SimpleLocatable locatable)
Will return the collision collisionDistance to said locatable from players location
|
int |
collisionDistance(SimpleLocatable locatable1,
SimpleLocatable locatable2) |
double |
collisionDistance(WorldPoint locTo)
Will return the collision collisionDistance to said point {locTo} from players location
|
int |
collisionDistance(WorldPoint w1,
WorldPoint w2,
boolean isObject) |
WorldArea |
createArea(WorldPoint... points)
Returns a new worldarea created from an array of points in a polygonal style
|
WorldArea |
createArea(WorldPoint point1,
WorldPoint point2)
Returns a new worldarea created from 2 points in a rectangular style
|
WorldPoint |
destination()
will return if your client has a destination that its walking to otherwise it will return {null}
|
double |
distanceTo(SimpleLocatable to) |
double |
distanceTo(WorldPoint to) |
double |
distanceTo(WorldPoint from,
WorldPoint to) |
double |
distanceTo2D(WorldPoint to) |
double |
distanceTo2D(WorldPoint from,
WorldPoint to) |
int |
energyLevel()
will return how much run energy you have
|
boolean |
inArea(int fromX,
int fromY,
int toX,
int toY) |
boolean |
inArea(WorldArea area)
Will return {true} if the local player is inside of {area}, false otherwise
|
boolean |
inArea(WorldArea area,
WorldPoint point)
Will return {true} if the {point} is inside of {area}, false otherwise
|
boolean |
inMotion() |
WorldPoint |
nextPathTile(WorldPoint[] path)
will return the next WorldPoint that should be walked to along your specified path.
|
boolean |
onTile(SimpleLocatable locatable) |
boolean |
onTile(WorldPoint point) |
int |
plane() |
boolean |
pointOnMap(WorldPoint p) |
boolean |
reachable(SimpleLocatable locatable)
will return {true} if the specified tile is not blocked and will return {false} if it is.
|
boolean |
reachable(SimpleLocatable locatable1,
SimpleLocatable locatable2)
will return whether or not point1 can reach point2
|
boolean |
reachable(WorldPoint locTo)
will return {true} if the specified tile is not blocked and will return {false} if it is.
|
boolean |
reachable(WorldPoint point1,
WorldPoint point2)
will return whether or not point1 can reach point2
|
boolean |
running()
will return if you have run toggled on or off
|
boolean |
running(boolean run)
will attempt to toggle run on/off based on {toggleRun}.
|
boolean |
staminaActive() |
boolean |
step(int x,
int y)
will attempt to walk to the specified x,y coordinate.
|
boolean |
step(SimpleLocatable to)
will attempt to walk to the specified point
|
boolean |
step(WorldPoint to)
will attempt to walk to the specified point
|
boolean |
walkPath(WorldPoint[] path)
will attempt to walk the specified path of tiles.
|
boolean |
walkPath(WorldPoint[] path,
boolean reverse)
will attempt to walk the specified path of tiles in reverse if specified true.
|
boolean |
walkToTile(WorldPoint to)
will attempt to walk to the specified point
|
public SimplePathing(ClientContext ctx)
ctx
- public int plane()
public WorldArea createArea(WorldPoint point1, WorldPoint point2)
point1
- point2
- public WorldArea createArea(WorldPoint... points)
points
- public boolean inArea(WorldArea area)
area
- public boolean inArea(WorldArea area, WorldPoint point)
area
- public boolean inArea(int fromX, int fromY, int toX, int toY)
public boolean onTile(WorldPoint point)
public boolean onTile(SimpleLocatable locatable)
public WorldPoint destination()
public boolean running()
public boolean staminaActive()
public boolean running(boolean run)
run
- public int energyLevel()
public boolean step(int x, int y)
x
- y
- public boolean step(SimpleLocatable to)
to
- public boolean step(WorldPoint to)
to
- public boolean walkToTile(WorldPoint to)
to
- public double distanceTo(WorldPoint to)
public double distanceTo(SimpleLocatable to)
public double distanceTo(WorldPoint from, WorldPoint to)
public double distanceTo2D(WorldPoint to)
public double distanceTo2D(WorldPoint from, WorldPoint to)
public double collisionDistance(WorldPoint locTo)
locTo
- public double collisionDistance(SimpleLocatable locatable)
locatable
- public boolean reachable(SimpleLocatable locatable)
locatable
- public boolean reachable(WorldPoint locTo)
locTo
- public boolean reachable(WorldPoint point1, WorldPoint point2)
point1
- point2
- public boolean reachable(SimpleLocatable locatable1, SimpleLocatable locatable2)
locatable1
- locatable2
- public int collisionDistance(SimpleLocatable locatable1, SimpleLocatable locatable2)
locatable1
- locatable2
- public int collisionDistance(WorldPoint w1, WorldPoint w2, boolean isObject)
w1
- w2
- public boolean walkPath(WorldPoint[] path)
path
- - the tile path to walkpublic boolean walkPath(WorldPoint[] path, boolean reverse)
path
- - the tile path to walkreverse
- - if the path should be reversedpublic WorldPoint nextPathTile(WorldPoint[] path)
path
- the path to searchpublic boolean pointOnMap(WorldPoint p)
public boolean inMotion()