Class BasicVertex
- java.lang.Object
-
- com.runemate.game.api.hybrid.web.vertex.BasicVertex
-
- Direct Known Subclasses:
BasicVertex.Fake
public class BasicVertex extends java.lang.Object implements Vertex
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BasicVertex.Fake
-
Constructor Summary
Constructors Constructor Description BasicVertex(@NonNull Coordinate position)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Area.Rectangular
getArea()
The coordinate area occupied on the world-graphCoordinate.HighPrecision
getHighPrecisionPosition()
The exact coordinate position of this entity on the region-graph (accurate to hundreds of units per tile)@NonNull Coordinate
getPosition()
The exact coordinate position of this entity on the world-graphScanResult
scan(java.util.Map<java.lang.String,java.lang.Object> cache)
boolean
step(java.util.Map<java.lang.String,java.lang.Object> cache)
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.runemate.game.api.hybrid.entities.details.Locatable
distanceTo, distanceTo, getLocalPosition
-
-
-
-
Constructor Detail
-
BasicVertex
public BasicVertex(@NonNull @NonNull Coordinate position)
-
-
Method Detail
-
getPosition
@NonNull public @NonNull Coordinate getPosition()
Description copied from interface:Locatable
The exact coordinate position of this entity on the world-graph- Specified by:
getPosition
in interfaceLocatable
- Returns:
- The coordinate position, or null if unavailable
-
getHighPrecisionPosition
@Nullable public Coordinate.HighPrecision getHighPrecisionPosition()
Description copied from interface:Locatable
The exact coordinate position of this entity on the region-graph (accurate to hundreds of units per tile)- Specified by:
getHighPrecisionPosition
in interfaceLocatable
- Specified by:
getHighPrecisionPosition
in interfaceVertex
-
getArea
@Nullable public Area.Rectangular getArea()
Description copied from interface:Locatable
The coordinate area occupied on the world-graph
-
step
public boolean step(java.util.Map<java.lang.String,java.lang.Object> cache)
-
scan
public ScanResult scan(java.util.Map<java.lang.String,java.lang.Object> cache)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-