Class PathFinder
java.lang.Object
de.gurkenlabs.litiengine.entities.behavior.PathFinder
- Direct Known Subclasses:
AStarPathFinder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Rectangle2DapplyPathMargin(ICollisionEntity entity, Rectangle2D rectangle) protected PathfindDirectPath(Point2D start, Point2D target) abstract PathfindPath(IMobileEntity start, Point2D target) Gets the path.protected booleanintersectsWithAnyCollisionBox(ICollisionEntity entity, Point2D start, Point2D target)
-
Constructor Details
-
PathFinder
public PathFinder()
-
-
Method Details
-
findPath
Gets the path.- Parameters:
start- the starttarget- the goal- Returns:
- the path
-
findDirectPath
-
applyPathMargin
-
intersectsWithAnyCollisionBox
protected boolean intersectsWithAnyCollisionBox(ICollisionEntity entity, Point2D start, Point2D target)
-