Package rsb.wrappers
Class RSLocalPath
java.lang.Object
rsb.methods.MethodProvider
rsb.wrappers.RSPath
rsb.wrappers.RSLocalPath
- Author:
- GigiaJ
-
Nested Class Summary
Nested classes/interfaces inherited from class rsb.wrappers.RSPath
RSPath.TraversalOption
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class rsb.methods.MethodProvider
methods
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the calculated RSTilePath that is currently providing data to this RSLocalPath.getEnd()
Gets the end tile of this path.getNext()
Gets the next immediately available vertex in this path.getStart()
Gets the start tile of this path.boolean
isValid()
Checks whether this path can be traversed by the player.boolean
traverse
(EnumSet<RSPath.TraversalOption> options) Takes a step along this path if appropriate.
-
Field Details
-
WALL_NORTH_WEST
public static final int WALL_NORTH_WEST- See Also:
-
WALL_NORTH
public static final int WALL_NORTH- See Also:
-
WALL_NORTH_EAST
public static final int WALL_NORTH_EAST- See Also:
-
WALL_EAST
public static final int WALL_EAST- See Also:
-
WALL_SOUTH_EAST
public static final int WALL_SOUTH_EAST- See Also:
-
WALL_SOUTH
public static final int WALL_SOUTH- See Also:
-
WALL_SOUTH_WEST
public static final int WALL_SOUTH_WEST- See Also:
-
WALL_WEST
public static final int WALL_WEST- See Also:
-
BLOCKED
public static final int BLOCKED- See Also:
-
-
Constructor Details
-
RSLocalPath
-
-
Method Details
-
traverse
Takes a step along this path if appropriate. If the path cannot be traversed due to the player being too far from its vertices or already at the end vertex,false
will be returned. In all other cases,true
will be returned, but an action will not necessarily be performed (based on the given options). -
isValid
public boolean isValid()Checks whether this path can be traversed by the player. This will be the case provided that the player near to one of its vertices, but not already standing on the end vertex. -
getNext
Gets the next immediately available vertex in this path. -
getStart
Gets the start tile of this path. -
getEnd
Gets the end tile of this path. -
getCurrentTilePath
Returns the calculated RSTilePath that is currently providing data to this RSLocalPath.- Returns:
- The current RSTile path; or
null
.
-