public class AStarPathFinder extends PathFinder
Constructor and Description |
---|
AStarPathFinder(AStarGrid grid) |
AStarPathFinder(java.awt.Dimension size,
int gridNodeSize) |
AStarPathFinder(IMap map) |
AStarPathFinder(IMap map,
int gridNodeSize) |
Modifier and Type | Method and Description |
---|---|
Path |
findPath(IMobileEntity entity,
java.awt.geom.Point2D target)
Gets the path.
|
AStarGrid |
getGrid() |
applyPathMargin, findDirectPath, intersectsWithAnyCollisionBox
public AStarPathFinder(AStarGrid grid)
public AStarPathFinder(java.awt.Dimension size, int gridNodeSize)
public AStarPathFinder(IMap map, int gridNodeSize)
public AStarPathFinder(IMap map)
public Path findPath(IMobileEntity entity, java.awt.geom.Point2D target)
PathFinder
findPath
in class PathFinder
entity
- the starttarget
- the goalpublic AStarGrid getGrid()