Class WaypointPath
- java.lang.Object
-
- com.runemate.game.api.hybrid.location.navigation.Path
-
- com.runemate.game.api.hybrid.location.navigation.cognizant.WaypointPath
-
- All Implemented Interfaces:
Renderable
public class WaypointPath extends Path
A predefined list of coordinates to use as waypoints to traverse through while doing long-distance navigation.Similar in nature to PredefinedPath but is intended to have significantly fewer coordinates defined and for each Coordinate to be spaced out much further.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.runemate.game.api.hybrid.location.navigation.Path
Path.TraversalOption
-
-
Field Summary
-
Fields inherited from class com.runemate.game.api.hybrid.location.navigation.Path
DEFAULT_TRAVERSAL_OPTIONS
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WaypointPath
create(@NonNull Locatable... coordinates)
static WaypointPath
create(@NonNull java.util.List<Locatable> coordinates)
Locatable
getNext()
Locatable
getNext(boolean preferViewportTraversal)
java.util.List<Locatable>
getVertices()
Gets a list of the vertices in this pathboolean
step(@NonNull Path.TraversalOption... options)
-
-
-
Method Detail
-
create
public static WaypointPath create(@NonNull @NonNull Locatable... coordinates)
-
create
public static WaypointPath create(@NonNull @NonNull java.util.List<Locatable> coordinates)
-
getVertices
public final java.util.List<Locatable> getVertices()
Description copied from class:Path
Gets a list of the vertices in this path- Specified by:
getVertices
in classPath
- Returns:
- A List
-
step
public boolean step(@NonNull @NonNull Path.TraversalOption... options)
-
getNext
@Nullable public Locatable getNext()
-
-