Class AStarPathFinder
java.lang.Object
de.gurkenlabs.litiengine.entities.behavior.PathFinder
de.gurkenlabs.litiengine.entities.behavior.AStarPathFinder
public class AStarPathFinder
extends PathFinder
Constructor 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 Path
findPath(IMobileEntity entity, java.awt.geom.Point2D target)
Gets the path.AStarGrid
getGrid()
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:PathFinder
Gets the path.- Specified by:
findPath
in classPathFinder
- Parameters:
entity
- the starttarget
- the goal- Returns:
- the path
getGrid