Class AStarPathfinderFactory

java.lang.Object
de.bsommerfeld.pathetic.engine.factory.AStarPathfinderFactory
All Implemented Interfaces:
de.bsommerfeld.pathetic.api.factory.PathfinderFactory

public class AStarPathfinderFactory extends Object implements de.bsommerfeld.pathetic.api.factory.PathfinderFactory
  • Constructor Details

    • AStarPathfinderFactory

      public AStarPathfinderFactory()
  • Method Details

    • createPathfinder

      public de.bsommerfeld.pathetic.api.pathing.Pathfinder createPathfinder()
      Specified by:
      createPathfinder in interface de.bsommerfeld.pathetic.api.factory.PathfinderFactory
    • createPathfinder

      public de.bsommerfeld.pathetic.api.pathing.Pathfinder createPathfinder(de.bsommerfeld.pathetic.api.pathing.configuration.PathfinderConfiguration configuration)
      Creates a new AStarPathfinder instance with the given configuration. The created pathfinder is initialized using the initializer provided to this factory. The NavigationPointProvider is obtained from the provided PathfinderConfiguration.
      Specified by:
      createPathfinder in interface de.bsommerfeld.pathetic.api.factory.PathfinderFactory
      Parameters:
      configuration - The configuration for the pathfinder, including the navigation point provider.
      Returns:
      A new, initialized AStarPathfinder instance.