Class AStarPathfinderFactory
java.lang.Object
de.bsommerfeld.pathetic.engine.factory.AStarPathfinderFactory
- All Implemented Interfaces:
PathfinderFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a new instance of aPathfinderwith a defaultPathfinderConfiguration.createPathfinder(PathfinderConfiguration configuration) Creates a newAStarPathfinderinstance with the given configuration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.bsommerfeld.pathetic.api.factory.PathfinderFactory
createPathfinder
-
Constructor Details
-
AStarPathfinderFactory
public AStarPathfinderFactory()
-
-
Method Details
-
createPathfinder
Description copied from interface:PathfinderFactoryCreates a new instance of aPathfinderwith a defaultPathfinderConfiguration.- Specified by:
createPathfinderin interfacePathfinderFactory- Returns:
- A new
Pathfinderinstance.
-
createPathfinder
Creates a newAStarPathfinderinstance with the given configuration. The created pathfinder is initialized using the initializer provided to this factory. TheNavigationPointProvideris obtained from the providedPathfinderConfiguration.- Specified by:
createPathfinderin interfacePathfinderFactory- Parameters:
configuration- The configuration for the pathfinder, including the navigation point provider.- Returns:
- A new, initialized
AStarPathfinderinstance.
-