public interface PathFinder
Modifier and Type | Method and Description |
---|---|
Path |
findPath(Pathfindable mover,
int sx,
int sy,
int dx,
int dy,
boolean ignoreRef)
Find a path from the starting location provided to the destination location avoiding blockages and attempting to
honor costs provided by the tile map.
|
Path findPath(Pathfindable mover, int sx, int sy, int dx, int dy, boolean ignoreRef)
mover
- The entity that will be moving along the path.sx
- The x coordinate of the start location.sy
- The y coordinate of the start location.dx
- The x coordinate of the destination location.dy
- The y coordinate of the destination location.ignoreRef
- The ignore map array reference checking (true
to ignore references).