1package com.runehive.game.world.position.impl;
3import com.runehive.game.world.position.Area;
4import com.runehive.game.world.position.Position;
5import com.runehive.util.Utility;
13 private final int swX;
18 private final int swY;
23 private final int neX;
28 private final int neY;
Handles checking if mobs are in a certain area.
Represents a single tile on the game world.
final String name
The name of this area.
final int swY
The south-west Y corner of the square.
final int height
The Z level of the box.
boolean inArea(Position position)
final int neY
The north-east Y corner of the square.
Position getRandomLocation()
final int neX
The north-east X corner of the square.
SquareArea(String name, int swX, int swY, int neX, int neY, int height)
Creates a new SquareArea.
SquareArea(int swX, int swY, int neX, int neY)
Creates a new SquareArea with a default height of 0.
final int swX
The south-west X corner of the square.
SquareArea(String name, int swX, int swY, int neX, int neY)
Creates a new SquareArea with a default height of 0.
Handles miscellaneous methods.
static int random(int bound)