Class Area.Polygonal

java.lang.Object
net.botwithus.rs3.game.Area
net.botwithus.rs3.game.Area.Polygonal
All Implemented Interfaces:
Locatable
Enclosing class:
Area

public static final class Area.Polygonal extends Area
  • Constructor Details

    • Polygonal

      public Polygonal(Coordinate... vertices)
  • Method Details

    • toRectangular

      @NotNull public @NotNull Area.Rectangular toRectangular()
      Specified by:
      toRectangular in class Area
    • toPolygonal

      @NotNull public @NotNull Area.Polygonal toPolygonal()
      Specified by:
      toPolygonal in class Area
    • toCircular

      @NotNull public @NotNull Area.Circular toCircular()
      Specified by:
      toCircular in class Area
    • contains

      public boolean contains(Locatable locatable)
      Specified by:
      contains in class Area
    • getCoordinates

      @NotNull public @NotNull List<Coordinate> getCoordinates()
      Specified by:
      getCoordinates in class Area
    • getCoordinate

      public Coordinate getCoordinate()
      Description copied from interface: Locatable
      Returns 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.