public class ScreenPath extends TilePath
Constructor and Description |
---|
ScreenPath(double precision,
Tile... tiles)
Construct a new path.
|
ScreenPath(Tile... tiles)
Construct a new path.
|
Modifier and Type | Method and Description |
---|---|
Tile |
getNext(APIContext ctx)
Gets the next available tile in this path.
|
protected boolean |
walk(APIContext ctx,
Tile next) |
getEnd, getStart, getTiles, randomize, reversed, traverse, traverse, validate
enableRun, getPrecision
public ScreenPath(Tile... tiles)
tiles
- the tiles to walk onpublic ScreenPath(double precision, Tile... tiles)
precision
- how far off the destination this path is considered completedtiles
- the tiles to walk onpublic Tile getNext(APIContext ctx)
Path
getNext
in class TilePath
ctx
- APIContext
protected boolean walk(APIContext ctx, Tile next)