Class ScreenPath
- java.lang.Object
-
- com.epicbot.api.shared.model.path.Path
-
- com.epicbot.api.shared.model.path.TilePath
-
- com.epicbot.api.shared.model.path.ScreenPath
-
public class ScreenPath extends TilePath
Walks a path on screen.
-
-
Constructor Summary
Constructors Constructor Description ScreenPath(double precision, Tile... tiles)
Construct a new path.ScreenPath(Tile... tiles)
Construct a new path.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tile
getNext(APIContext ctx)
Gets the next available tile in this path.protected boolean
walk(APIContext ctx, Tile next)
-
Methods inherited from class com.epicbot.api.shared.model.path.TilePath
getEnd, getStart, getTiles, randomize, reversed, traverse, traverse, validate
-
Methods inherited from class com.epicbot.api.shared.model.path.Path
enableRun, getPrecision
-
-
-
-
Constructor Detail
-
ScreenPath
public ScreenPath(Tile... tiles)
Construct a new path.- Parameters:
tiles
- the tiles to walk on
-
ScreenPath
public ScreenPath(double precision, Tile... tiles)
Construct a new path.- Parameters:
precision
- how far off the destination this path is considered completedtiles
- the tiles to walk on
-
-
Method Detail
-
getNext
public Tile getNext(APIContext ctx)
Description copied from class:Path
Gets the next available tile in this path.- Overrides:
getNext
in classTilePath
- Parameters:
ctx
-APIContext
- Returns:
- the next tile or null
-
walk
protected boolean walk(APIContext ctx, Tile next)
-
-