Class Area.Polygonal
- java.lang.Object
-
- com.runemate.game.api.hybrid.location.Area
-
- com.runemate.game.api.hybrid.location.Area.Polygonal
-
- All Implemented Interfaces:
Interactable
,Locatable
,Renderable
,java.io.Serializable
- Enclosing class:
- Area
public static class Area.Polygonal extends Area
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.runemate.game.api.hybrid.location.Area
Area.Absolute, Area.Circular, Area.Polygonal, Area.Rectangular
-
-
Constructor Summary
Constructors Constructor Description Polygonal(Coordinate... vertices)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(Locatable locatable, boolean ignorePlane)
Area.Polygonal
derive(int x, int y, int plane)
boolean
equals(java.lang.Object obj)
@NonNull Coordinate
getCenter()
java.util.List<Coordinate>
getCoordinates()
Gets a list of all coordinates within the areajava.util.List<Coordinate>
getVertices()
Gets a list of the vertices that were used to build this Area.int
hashCode()
Area.Rectangular
toRectangular()
Converts an Area into a Area.Rectangular that contains the entire Areajava.lang.String
toString()
-
Methods inherited from class com.runemate.game.api.hybrid.location.Area
absolute, circular, click, contains, contains, containsAllOf, containsAllOf, containsAnyOf, containsAnyOf, derive, getArea, getHighPrecisionPosition, getInteractionPoint, getOverlappingCoordinates, getOverlappingCoordinates, getPosition, getRandomCoordinate, getVisibility, hasDynamicBounds, hover, interact, interact, interact, interact, isLoaded, isReachable, isVisible, overlaps, overlaps, polygonal, rectangular, render, render, singular
-
Methods inherited from interface com.runemate.game.api.hybrid.entities.details.Interactable
getInteractionPoint, interact, interact, isHovered
-
Methods inherited from interface com.runemate.game.api.hybrid.entities.details.Locatable
distanceTo, distanceTo, getLocalPosition
-
-
-
-
Constructor Detail
-
Polygonal
public Polygonal(Coordinate... vertices)
-
-
Method Detail
-
derive
public Area.Polygonal derive(int x, int y, int plane)
-
getVertices
public java.util.List<Coordinate> getVertices()
Gets a list of the vertices that were used to build this Area.
-
getCoordinates
public java.util.List<Coordinate> getCoordinates()
Description copied from class:Area
Gets a list of all coordinates within the area- Specified by:
getCoordinates
in classArea
-
toRectangular
public Area.Rectangular toRectangular()
Description copied from class:Area
Converts an Area into a Area.Rectangular that contains the entire Area- Specified by:
toRectangular
in classArea
-
contains
public boolean contains(Locatable locatable, boolean ignorePlane)
-
getCenter
@NonNull public @NonNull Coordinate getCenter()
-
-