public abstract class PathFinder
extends java.lang.Object
| Constructor and Description |
|---|
PathFinder() |
| Modifier and Type | Method and Description |
|---|---|
protected java.awt.geom.Rectangle2D |
applyPathMargin(ICollisionEntity entity,
java.awt.geom.Rectangle2D rectangle) |
protected Path |
findDirectPath(java.awt.geom.Point2D start,
java.awt.geom.Point2D target) |
abstract Path |
findPath(IMobileEntity start,
java.awt.geom.Point2D target)
Gets the path.
|
protected boolean |
intersectsWithAnyCollisionBox(ICollisionEntity entity,
java.awt.geom.Point2D start,
java.awt.geom.Point2D target) |
public abstract Path findPath(IMobileEntity start, java.awt.geom.Point2D target)
start - the starttarget - the goalprotected Path findDirectPath(java.awt.geom.Point2D start, java.awt.geom.Point2D target)
protected java.awt.geom.Rectangle2D applyPathMargin(ICollisionEntity entity, java.awt.geom.Rectangle2D rectangle)
protected boolean intersectsWithAnyCollisionBox(ICollisionEntity entity, java.awt.geom.Point2D start, java.awt.geom.Point2D target)