Constructor and Description |
---|
Path(double precision) |
Modifier and Type | Method and Description |
---|---|
protected void |
enableRun(APIContext ctx) |
abstract Tile |
getEnd()
Gets the end tile of this path.
|
abstract Tile |
getNext(APIContext ctx)
Gets the next available tile in this path.
|
double |
getPrecision()
Gets the allowed precision of this path.
|
abstract Tile |
getStart()
Gets the start tile of this path.
|
abstract Tile[] |
getTiles() |
abstract boolean |
traverse(APIContext ctx)
Takes a step along this path if appropriate.
|
abstract boolean |
traverse(APIContext ctx,
boolean enableRun)
Takes a step along this path if appropriate.
|
abstract boolean |
validate(APIContext ctx)
Checks whether or not this path can be traversed by the player.
|
public abstract boolean traverse(APIContext ctx)
ctx
- APIContext
public abstract boolean traverse(APIContext ctx, boolean enableRun)
ctx
- APIContext
enableRun
- true to enable runpublic abstract boolean validate(APIContext ctx)
ctx
- APIContext
public abstract Tile getNext(APIContext ctx)
ctx
- APIContext
public abstract Tile getStart()
public abstract Tile getEnd()
public abstract Tile[] getTiles()
public double getPrecision()
protected void enableRun(APIContext ctx)