Area

open class Area

Represents a contiguous set of tiles in the game

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open val center: WorldTile

Functions

Link copied to clipboard
open fun contains(position: Positionable): Boolean
Checks if this area contains the specified position
Link copied to clipboard
Checks if this area contains the local player
Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
open fun fromPolygon(tiles: List<Tile>): Area
open fun fromPolygon(tiles: Array<Tile>): Area
Creates an Area from a polygon
Link copied to clipboard
open fun fromRadius(centerTile: Tile, radius: Int): Area
Creates an area around the center tile with the specified radius
Link copied to clipboard
open fun fromRectangle(base1: Tile, base2: Tile): Area
Creates a rectangular area with the two specified tiles as the bounds
Link copied to clipboard
Gets a list of all the tiles in the area.
Link copied to clipboard
open fun getBounds(): Polygon
Gets the bounds of this area on the screen
Link copied to clipboard
open fun getLegacyArea(): RSArea
Link copied to clipboard
Gets the bounds of this area on the minimap
Link copied to clipboard
Gets a random tile in this area
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
open fun translate(x: Int, y: Int): Area
Translates (shifts) this area by the specified x and y
open fun translate(x: Int, y: Int, z: Int): Area
Translates (shifts) this area by the specified x, y, and z