RuneHive-Tarnish
Neural OSRS Enhancement Framework
|
Public Member Functions | |
Region (int x, int y) | |
int | getX () |
int | getY () |
int | getFlags (int height, int x, int y) |
void | setFlags (int height, int x, int y, int flags) |
void | unsetFlags (int height, int x, int y, int flags) |
Collection< Player > | getPlayers (int height) |
Collection< Npc > | getNpcs (int height) |
GroundItem | getGroundItem (int id, Position position) |
void | addPlayer (Player player) |
void | removePlayer (Player player) |
void | addNpc (Npc npc) |
void | removeNpc (Npc npc) |
void | addObject (GameObject object) |
void | removeObject (GameObject object) |
void | addGroundItem (GroundItem item) |
void | removeGroundItem (GroundItem item) |
boolean | containsObject (int height, GameObject object) |
boolean | containsObject (Position position) |
Set< GroundItem > | getGroundItems (Position position) |
GameObject | getGameObject (int id, Position position) |
void | sendGroundItems (Player player) |
void | sendGameObjects (Player player) |
boolean | contains (Position position) |
boolean | contains (int x, int y) |
Represents a single region.
Definition at line 58 of file Region.java.
|
inline |
Creates a region.
Definition at line 78 of file Region.java.
|
inline |
Adds a ground item to this region.
Definition at line 187 of file Region.java.
|
inline |
Adds an npc to this region.
Definition at line 167 of file Region.java.
|
inline |
Adds an object to this region.
Definition at line 177 of file Region.java.
|
inline |
Adds a player to this region.
Definition at line 157 of file Region.java.
|
inline |
true
if the region contains the position Definition at line 248 of file Region.java.
|
inline |
true
if the region contains the position Definition at line 243 of file Region.java.
|
inline |
true
if object is in region Definition at line 205 of file Region.java.
|
inline |
true
if object occupies position Definition at line 210 of file Region.java.
|
inline |
Gets a single tile in this region from the specified height, x and y coordinates.
height | The height. |
x | The x coordinate. |
y | The y coordinate. |
Definition at line 103 of file Region.java.
|
inline |
true
if object with given id occupies position Definition at line 220 of file Region.java.
|
inline |
Definition at line 152 of file Region.java.
|
inline |
Definition at line 215 of file Region.java.
|
inline |
Definition at line 147 of file Region.java.
|
inline |
Definition at line 142 of file Region.java.
|
inline |
Definition at line 85 of file Region.java.
|
inline |
Definition at line 90 of file Region.java.
|
inline |
Adds a ground item to this region.
Definition at line 192 of file Region.java.
|
inline |
Removes an npc from this region.
Definition at line 172 of file Region.java.
|
inline |
Removes an object from this region.
Definition at line 182 of file Region.java.
|
inline |
Removes a player from this region.
Definition at line 162 of file Region.java.
|
inline |
Sends game objects in this region to the player
.
Definition at line 238 of file Region.java.
|
inline |
Sends ground items in this region to the player
.
Definition at line 233 of file Region.java.
|
inline |
Gets a single tile in this region from the specified height, x and y coordinates.
height | The height. |
x | The x coordinate. |
y | The y coordinate. |
Definition at line 116 of file Region.java.
|
inline |
Gets a single tile in this region from the specified height, x and y coordinates.
height | The height. |
x | The x coordinate. |
y | The y coordinate. |
Definition at line 129 of file Region.java.