public VehiclePathfinder(World world) { this.pathfinder = new AStarPathFinder(world, MAX_SEARCH_DISTANCE, true, new ClosestHeuristic()); }
public InfantryPathfinder(World world) { this.pathfinder = new AStarPathFinder(world, MAX_SEARCH_DISTANCE, true, new ClosestHeuristic()); }
/** * Create a path finder with the default heuristic - closest to target. * * @param map The map to be searched * @param maxSearchDistance The maximum depth we'll search before giving up * @param allowDiagMovement True if the search should try diaganol movement */ public AStarPathFinder(TileBasedMap map, int maxSearchDistance, boolean allowDiagMovement) { this(map, maxSearchDistance, allowDiagMovement, new ClosestHeuristic()); }