1package com.runehive.game.world.pathfinding.path;
3import com.runehive.game.world.Interactable;
4import com.runehive.game.world.entity.mob.Direction;
5import com.runehive.game.world.entity.mob.Mob;
6import com.runehive.game.world.pathfinding.TraversalMap;
7import com.runehive.game.world.position.Position;
31 return find(origin, target, 0, 0);
Contains traversal data for a set of regions.
static boolean isTraversable(Position from, Direction direction, int size)
Tests whether or not a specified position is traversable in the specified direction.
An algorithm used to find a path between two Positions.
boolean traversable(Position current, Position going, int size)
Returns whether or not a Position is traversable to the direction of another Position.
abstract Path find(Mob source, Position target, int targetWidth, int targetLength)
Finds a valid path from the origin Position to the target one.
boolean projectileCheck(Position current, Position going)
Returns whether or not a Position shooting projectile to another Position would lead to is traversabl...
final Path find(Mob origin, Position target)
boolean traversable(Position current, int size, Direction... directions)
Returns whether or not a Position walking one step in any of the specified Directions would lead to i...
final Path find(Mob origin, Interactable target)
Represents a single path in the path finding system.
Represents a single tile on the game world.
Represents the enumerated directions an entity can walk or face.
static Direction getDirection(int deltaX, int deltaY)
Gets the direction between two locations.
An object implementing Interactable has uses.