public interface IWalkingAPI
Modifier and Type | Method and Description |
---|---|
LocalPath |
findPath(Locatable destination)
Finds a local path.
|
LocalPath |
findPath(Locatable destination,
double precision)
Finds a local path.
|
LocalPath |
findPath(Locatable origin,
Locatable destination)
Finds a local path.
|
LocalPath |
findPath(Locatable origin,
Locatable destination,
double precision)
Finds a local path.
|
ScreenPath |
findPathOnScreen(Locatable destination)
Finds a screen path.
|
ScreenPath |
findPathOnScreen(Locatable destination,
double precision)
Finds a screen path.
|
Tile |
getClosestTileOnMap(Locatable destination)
Gets the closest tile on the minimap towards the given destination.
|
Tile |
getClosestTileOnScreen(Locatable destination)
Gets the closest tile that is on screen towards the given destination.
|
int[][] |
getCollisionFlags(int plane) |
Tile |
getCollisionOffset(int plane) |
Tile |
getDestination()
Gets the current walking destination.
|
Tile |
getNext(Tile[] tiles)
Gets the next best available tile to use.
|
Tile |
getNextOnScreen(Tile[] tiles)
Gets the next best available tile to use on screen.
|
int |
getRunEnergy()
Gets the current run energy.
|
byte[][][] |
getTileFlags() |
int[][][] |
getTileHeights() |
boolean |
isRunEnabled()
Gets whether or not running is enabled.
|
default boolean |
isWalkingTo(Locatable destination)
Determines if we are walking towards the given destination.
|
boolean |
isWalkingTo(Locatable destination,
double precision)
Determines if we are walking towards the given destination with precision.
|
boolean |
setRun(boolean enabled)
Toggles running by using the running orb.
|
boolean |
walkOnMap(Locatable destination)
Clicks the given destination on the minimap to walk towards it.
|
boolean |
walkOnMap(Locatable destination,
double precision)
Clicks the given destination on the minimap to walk towards with precision.
|
boolean |
walkOnScreen(Locatable destination)
Click the given destination tile on screen.
|
boolean |
walkOnScreen(Locatable destination,
double precision)
Click the given destination tile on screen.
|
boolean |
walkPath(Tile[] tilePath)
Walks along the given path.
|
boolean |
walkPath(Tile[] tilePath,
double precision)
Walks along the given path with precision.
|
boolean |
walkPath(TilePath path)
Walks along the given path.
|
boolean |
walkPathOnScreen(ScreenPath tilePath)
Walks along the given path on screen.
|
boolean |
walkPathOnScreen(Tile[] tilePath)
Walks along the given path on screen.
|
boolean |
walkPathOnScreen(Tile[] tilePath,
double precision)
Walks along the given path on screen with precision.
|
boolean |
walkTo(Locatable destination)
Walks towards the destination.
|
boolean |
walkTo(Locatable destination,
double precision)
Walks towards the destination with precision.
|
boolean |
walkToOnScreen(Locatable destination)
Walks towards the destination by clicking on screen.
|
boolean |
walkToOnScreen(Locatable destination,
double precision)
Walks towards the destination with precision by clicking on screen.
|
boolean walkTo(Locatable destination)
destination
- the destinationfindPath(Locatable)
boolean walkTo(Locatable destination, double precision)
destination
- the destinationprecision
- how far off the destination this path is considered completedfindPath(Locatable, double)
boolean walkToOnScreen(Locatable destination)
destination
- the destinationfindPathOnScreen(Locatable)
boolean walkToOnScreen(Locatable destination, double precision)
destination
- the destinationprecision
- how far off the destination this path is considered completedfindPathOnScreen(Locatable, double)
boolean walkOnMap(Locatable destination)
destination
- the destinationboolean walkOnMap(Locatable destination, double precision)
destination
- the destinationprecision
- how far off the destination this path is considered completedboolean walkOnScreen(Locatable destination)
destination
- the destination on screen to clickboolean walkOnScreen(Locatable destination, double precision)
destination
- the destination on screen to clickprecision
- how far off the destination this path is considered completedboolean walkPath(Tile[] tilePath)
tilePath
- the tiles of the path to followboolean walkPath(Tile[] tilePath, double precision)
tilePath
- the tiles of the path to followprecision
- how far off the destination this path is considered completedboolean walkPath(TilePath path)
TilePath.traverse(com.epicbot.api.shared.APIContext)
.path
- the path to followboolean walkPathOnScreen(Tile[] tilePath)
tilePath
- the tiles of the path to followboolean walkPathOnScreen(Tile[] tilePath, double precision)
tilePath
- the tiles of the path to followprecision
- how far off the destination this path is considered completedboolean walkPathOnScreen(ScreenPath tilePath)
TilePath.traverse(com.epicbot.api.shared.APIContext)
.tilePath
- the path to followLocalPath findPath(Locatable destination)
destination
- the destinationLocalPath
LocalPath findPath(Locatable destination, double precision)
destination
- the destinationprecision
- how far off the destination this path is considered completedLocalPath
LocalPath findPath(Locatable origin, Locatable destination)
origin
- the origin to calculate fromdestination
- the destinationLocalPath
LocalPath findPath(Locatable origin, Locatable destination, double precision)
origin
- the origin to calculate fromdestination
- the destinationprecision
- how far off the destination this path is considered completedLocalPath
ScreenPath findPathOnScreen(Locatable destination)
destination
- the destinationScreenPath
ScreenPath findPathOnScreen(Locatable destination, double precision)
destination
- the destinationprecision
- how far off the destination this path is considered completedScreenPath
Tile getNext(Tile[] tiles)
tiles
- the tile arrayTile getNextOnScreen(Tile[] tiles)
tiles
- the tile arrayTile getClosestTileOnMap(Locatable destination)
destination
- the destination you want to get toTile getClosestTileOnScreen(Locatable destination)
destination
- the destination you want to get todefault boolean isWalkingTo(Locatable destination)
destination
- the destinationboolean isWalkingTo(Locatable destination, double precision)
destination
- the destinationprecision
- how far off the destination is still considered OKint getRunEnergy()
boolean isRunEnabled()
boolean setRun(boolean enabled)
enabled
- whether or not to enable runningTile getCollisionOffset(int plane)
int[][] getCollisionFlags(int plane)
byte[][][] getTileFlags()
int[][][] getTileHeights()