com.b3dgs.lionengine.game.pathfinding
Interface PathFinder

All Known Implementing Classes:
AStarPathFinder

public interface PathFinder

A description of an implementation that can find a path from one location on a tile map to another based on information provided by that tile map.


Method Summary
 Path findPath(Pathfindable mover, int sx, int sy, int tx, int ty, boolean ignoreRef)
          Find a path from the starting location provided (sx,sy) to the target location (tx,ty) avoiding blockages and attempting to honour costs provided by the tile map.
 

Method Detail

findPath

Path findPath(Pathfindable mover,
              int sx,
              int sy,
              int tx,
              int ty,
              boolean ignoreRef)
Find a path from the starting location provided (sx,sy) to the target location (tx,ty) avoiding blockages and attempting to honour costs provided by the tile map.

Parameters:
mover - entity that will be moving along the path.
sx - x coordinate of the start location.
sy - y coordinate of the start location.
tx - x coordinate of the target location.
ty - y coordinate of the target location.
ignoreRef - ignore map array ref checking.
Returns:
path found from start to end, or null if no path can be found.