java.lang.Object
net.botwithus.rs3.game.Area
net.botwithus.rs3.game.Area.Rectangular
- All Implemented Interfaces:
Locatable
- Enclosing class:
Area
-
Nested Class Summary
Nested classes/interfaces inherited from class net.botwithus.rs3.game.Area
Area.Circular, Area.Polygonal, Area.Rectangular, Area.Singular -
Constructor Summary
ConstructorsConstructorDescriptionRectangular(Coordinate bottomLeft, int width, int height) Rectangular(Coordinate bottomLeft, Coordinate topRight) -
Method Summary
Modifier and TypeMethodDescriptionbooleanderive(int xOffset, int yOffset, int planeOffset) Returns the position of the entity on the world graph.@NotNull List<Coordinate>@Nullable Coordinate@NotNull Area.Circular@NotNull Area.Polygonal@NotNull Area.RectangulartoString()Methods inherited from class net.botwithus.rs3.game.Area
getArea, getCentroid, getCoordinatesInArea, getOverlap, getOverlap, getRandomWalkableCoordinate, getWalkableCoordinates, overlaps, overlaps, toSingularMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.botwithus.rs3.game.Locatable
distanceTo, isReachable
-
Constructor Details
-
Rectangular
-
Rectangular
-
-
Method Details
-
toRectangular
- Specified by:
toRectangularin classArea
-
toPolygonal
- Specified by:
toPolygonalin classArea
-
toCircular
- Specified by:
toCircularin classArea
-
contains
-
getCoordinates
- Specified by:
getCoordinatesin classArea
-
getRandomCoordinate
- Overrides:
getRandomCoordinatein classArea
-
derive
-
getBottomRight
-
getTopLeft
-
getCoordinate
Description copied from interface:LocatableReturns the position of the entity on the world graph.- Returns:
- The position of the entity, or null if it cannot be determined or is no longer on the world graph.
-
toString
-