Area

public class Area

Represents a contiguous set of tiles in the game

Functions

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

Properties

center
Link copied to clipboard
private transient WorldTile center