RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
com.osroyale.game.world.pathfinding.TraversalMap Class Reference

Static Public Member Functions

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< PositiongetTraversableTiles (Position southWest, int width, int length)

Detailed Description

Contains traversal data for a set of regions.

Author
Artem Batutin artem.nosp@m.batu.nosp@m.tin@g.nosp@m.mail.nosp@m..com
Ryley Kimmel ryley.nosp@m..kim.nosp@m.mel@l.nosp@m.ive..nosp@m.com

Definition at line 61 of file TraversalMap.java.

Member Function Documentation

◆ 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
heightThe height.
localXThe x coordinate.
localYThe 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
southWestThe position moving from.
widthThe 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
fromThe position.
directionThe direction to traverse.
impenetrableThe 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
fromThe position.
directionThe direction to traverse.
sizeThe 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
heightThe height.
xThe x coordinate.
yThe 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
objectThe game object.
addThe condition if the object is added.
listthe 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
heightThe height.
xThe x coordinate.
yThe y coordinate.
widthThe width of the occupation.
lengthThe length of the occupation.
impenetrableWhether or not this occupation can be passed through.
addFlag 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
heightThe height.
xThe x coordinate.
yThe y coordinate.
flagThe 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: