|
static void | markObject (Region region, GameObject object, boolean add, boolean list) |
static void | block (Region region, int height, int localX, int localY) |
static void | markOccupant (Region region, int height, int x, int y, int width, int length, boolean impenetrable, boolean add) |
static void | markBridge (Region region, int height, int x, int y) |
static void | set (Region region, int height, int x, int y, int flag) |
static boolean | isTraversable (Position from, Direction direction, int size) |
static boolean | isTraversable (Position from, Direction direction, boolean impenetrable) |
static List< Position > | getTraversableTiles (Position southWest, int width, int length) |
◆ block()
void com.osroyale.game.world.pathfinding.TraversalMap.block |
( |
Region | region, |
|
|
int | height, |
|
|
int | localX, |
|
|
int | localY ) |
|
inlinestatic |
Marks the specified set of coordinates blocked, unable to be passed through.
- Parameters
-
height | The height. |
localX | The x coordinate. |
localY | The y coordinate. |
Definition at line 389 of file TraversalMap.java.
◆ getTraversableTiles()
List< Position > com.osroyale.game.world.pathfinding.TraversalMap.getTraversableTiles |
( |
Position | southWest, |
|
|
int | width, |
|
|
int | length ) |
|
inlinestatic |
Returns a List
of positions that are traversable from the specified position.
- Parameters
-
southWest | The position moving from. |
width | The size of the mob attempting to traverse. |
length | |
- Returns
- A
List
of positions.
Definition at line 958 of file TraversalMap.java.
◆ isTraversable() [1/2]
boolean com.osroyale.game.world.pathfinding.TraversalMap.isTraversable |
( |
Position | from, |
|
|
Direction | direction, |
|
|
boolean | impenetrable ) |
|
inlinestatic |
Tests whether or not a specified position is traversable in the specified direction.
- Parameters
-
from | The position. |
direction | The direction to traverse. |
impenetrable | The condition if impenetrability must be checked. |
- Returns
true
if the direction is traversable otherwise false
.
Definition at line 924 of file TraversalMap.java.
◆ isTraversable() [2/2]
boolean com.osroyale.game.world.pathfinding.TraversalMap.isTraversable |
( |
Position | from, |
|
|
Direction | direction, |
|
|
int | size ) |
|
inlinestatic |
Tests whether or not a specified position is traversable in the specified direction.
- Parameters
-
from | The position. |
direction | The direction to traverse. |
size | The size of the entity attempting to traverse. |
- Returns
true
if the direction is traversable otherwise false
.
Definition at line 889 of file TraversalMap.java.
◆ markBridge()
void com.osroyale.game.world.pathfinding.TraversalMap.markBridge |
( |
Region | region, |
|
|
int | height, |
|
|
int | x, |
|
|
int | y ) |
|
inlinestatic |
Marks the specified coordinates a bridge.
- Parameters
-
height | The height. |
x | The x coordinate. |
y | The y coordinate. |
Definition at line 425 of file TraversalMap.java.
◆ markObject()
void com.osroyale.game.world.pathfinding.TraversalMap.markObject |
( |
Region | region, |
|
|
GameObject | object, |
|
|
boolean | add, |
|
|
boolean | list ) |
|
inlinestatic |
Marks a GameObject
with the specified attributes on the specified Position
to the TraversalMap
.
- Parameters
-
object | The game object. |
add | The condition if the object is added. |
list | the condition if the region object list will be affected. |
Definition at line 73 of file TraversalMap.java.
◆ markOccupant()
void com.osroyale.game.world.pathfinding.TraversalMap.markOccupant |
( |
Region | region, |
|
|
int | height, |
|
|
int | x, |
|
|
int | y, |
|
|
int | width, |
|
|
int | length, |
|
|
boolean | impenetrable, |
|
|
boolean | add ) |
|
inlinestatic |
Marks the specified coordinates occupied by some object.
- Parameters
-
height | The height. |
x | The x coordinate. |
y | The y coordinate. |
width | The width of the occupation. |
length | The length of the occupation. |
impenetrable | Whether or not this occupation can be passed through. |
add | Flag if the occupant is added or removed. |
Definition at line 405 of file TraversalMap.java.
◆ set()
void com.osroyale.game.world.pathfinding.TraversalMap.set |
( |
Region | region, |
|
|
int | height, |
|
|
int | x, |
|
|
int | y, |
|
|
int | flag ) |
|
inlinestatic |
Sets a flag on the specified position.
- Parameters
-
height | The height. |
x | The x coordinate. |
y | The y coordinate. |
flag | The flag to put on this tile. |
Definition at line 845 of file TraversalMap.java.
The documentation for this class was generated from the following file: