Class AStarPathFinder
java.lang.Object
de.gurkenlabs.litiengine.entities.behavior.PathFinder
de.gurkenlabs.litiengine.entities.behavior.AStarPathFinder
public class AStarPathFinder
extends PathFinderConstructor Summary
Constructors Constructor Description AStarPathFinder(AStarGrid grid)AStarPathFinder(IMap map)AStarPathFinder(IMap map, int gridNodeSize)AStarPathFinder(java.awt.Dimension size, int gridNodeSize)Method Summary
Modifier and Type Method Description PathfindPath(IMobileEntity entity, java.awt.geom.Point2D target)Gets the path.AStarGridgetGrid()Methods inherited from class de.gurkenlabs.litiengine.entities.behavior.PathFinder
applyPathMargin, findDirectPath, intersectsWithAnyCollisionBox
Constructor Details
AStarPathFinder
AStarPathFinder
public AStarPathFinder(java.awt.Dimension size, int gridNodeSize)AStarPathFinder
AStarPathFinder
Method Details
findPath
Description copied from class:PathFinderGets the path.- Specified by:
findPathin classPathFinder- Parameters:
entity- the starttarget- the goal- Returns:
- the path
getGrid
