Class Path
java.lang.Object
com.epicbot.api.shared.model.path.Path
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidenableRun(APIContext ctx) abstract TilegetEnd()Gets the end tile of this path.abstract TilegetNext(APIContext ctx) Gets the next available tile in this path.doubleGets the allowed precision of this path.abstract TilegetStart()Gets the start tile of this path.abstract Tile[]getTiles()abstract booleantraverse(APIContext ctx) Takes a step along this path if appropriate.abstract booleantraverse(APIContext ctx, boolean enableRun) Takes a step along this path if appropriate.abstract booleanvalidate(APIContext ctx) Checks whether or not this path can be traversed by the player.
-
Constructor Details
-
Path
public Path(double precision)
-
-
Method Details
-
getStart
Gets the start tile of this path.- Returns:
- the start tile
-
getEnd
Gets the end tile of this path.- Returns:
- the end tile
-
getTiles
-
getPrecision
public double getPrecision()Gets the allowed precision of this path. For example: with a precision of 2 the path will not be traversed if the player is 2 'tiles' from the destination.- Returns:
- the path precision