Package com.runemate.game.api.hybrid.web
Class WebPath
- java.lang.Object
-
- com.runemate.game.api.hybrid.location.navigation.Path
-
- com.runemate.game.api.hybrid.web.WebPath
-
- All Implemented Interfaces:
Renderable
public class WebPath extends Path
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WebPath.Cache
-
Nested classes/interfaces inherited from class com.runemate.game.api.hybrid.location.navigation.Path
Path.TraversalOption
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
AVATAR
static java.lang.String
AVATAR_POS
static java.lang.String
DIRECT_INPUT
static java.lang.String
ITEM_CACHE
static java.lang.String
NPC_CACHE
static java.lang.String
PREFERS_VIEWPORT
static java.lang.String
PREVIOUS
static java.lang.String
REACHABLE
static java.lang.String
REGION
static java.lang.String
REGION_BASE
static java.lang.String
STEPS
-
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 WebPath
buildBetween(Locatable start, Locatable destination)
static WebPath
buildTo(Locatable destination)
static WebPath
buildTo(Landmark destination)
@Nullable Vertex
getNext()
Vertex
getNext(boolean preferViewportTraversal)
@Nullable WebPathRequest
getRequest()
java.util.List<? extends Locatable>
getVertices()
Gets a list of the vertices in this pathvoid
reset()
void
setRequest(@Nullable WebPathRequest request)
boolean
step(@NonNull Path.TraversalOption... options)
-
-
-
Field Detail
-
PREVIOUS
public static final java.lang.String PREVIOUS
- See Also:
- Constant Field Values
-
STEPS
public static final java.lang.String STEPS
- See Also:
- Constant Field Values
-
AVATAR
public static final java.lang.String AVATAR
- See Also:
- Constant Field Values
-
REGION
public static final java.lang.String REGION
- See Also:
- Constant Field Values
-
REACHABLE
public static final java.lang.String REACHABLE
- See Also:
- Constant Field Values
-
REGION_BASE
public static final java.lang.String REGION_BASE
- See Also:
- Constant Field Values
-
AVATAR_POS
public static final java.lang.String AVATAR_POS
- See Also:
- Constant Field Values
-
NPC_CACHE
public static final java.lang.String NPC_CACHE
- See Also:
- Constant Field Values
-
ITEM_CACHE
public static final java.lang.String ITEM_CACHE
- See Also:
- Constant Field Values
-
PREFERS_VIEWPORT
public static final java.lang.String PREFERS_VIEWPORT
- See Also:
- Constant Field Values
-
DIRECT_INPUT
public static final java.lang.String DIRECT_INPUT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WebPath
public WebPath(java.util.List<Vertex> vertices)
-
-
Method Detail
-
getVertices
public java.util.List<? extends Locatable> getVertices()
Description copied from class:Path
Gets a list of the vertices in this path- Specified by:
getVertices
in classPath
- Returns:
- A List
-
getNext
@Nullable public @Nullable Vertex getNext()
-
step
public boolean step(@NonNull @NonNull Path.TraversalOption... options)
-
reset
public void reset()
-
getRequest
@Nullable public @Nullable WebPathRequest getRequest()
-
setRequest
public void setRequest(@Nullable @Nullable WebPathRequest request)
-
-