Skip to content

Commit

Permalink
refact: allowingFailFast is now deprecated and will be removed in fut…
Browse files Browse the repository at this point in the history
…ure releases
  • Loading branch information
Metaphoriker committed Dec 1, 2024
1 parent 91e01e6 commit 846f61d
Showing 1 changed file with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
package de.metaphoriker.pathetic.api.pathing.configuration;

import java.util.List;

import de.metaphoriker.pathetic.api.annotation.Experimental;
import de.metaphoriker.pathetic.api.pathing.Pathfinder;
import de.metaphoriker.pathetic.api.pathing.filter.PathFilterStage;
import de.metaphoriker.pathetic.api.wrapper.PathPosition;
import java.util.List;
import lombok.AccessLevel;
import lombok.Builder;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Value;
import lombok.With;
import de.metaphoriker.pathetic.api.annotation.Experimental;
import de.metaphoriker.pathetic.api.pathing.Pathfinder;
import de.metaphoriker.pathetic.api.wrapper.PathPosition;

/**
* Defines a set of configurable parameters that govern the behavior of the A* pathfinding
Expand Down Expand Up @@ -54,14 +53,16 @@ public class PathfinderConfiguration {
* @default true
* @deprecated Will be removed in future releases
*/
@Deprecated
@Builder.Default boolean allowingDiagonal = true;
@Deprecated @Builder.Default boolean allowingDiagonal = true;

Check warning on line 56 in pathetic-api/src/main/java/de/metaphoriker/pathetic/api/pathing/configuration/PathfinderConfiguration.java

View workflow job for this annotation

GitHub Actions / qodana

Field can be made 'static'

Field `allowingDiagonal` may be 'static'

/**
* If set to true, the pathfinding process will terminate immediately if no path is found between
* the start and target. This can be helpful for quick validation but prevents fallback
* strategies.
* If set to true, the pathfinding process will terminate immediately if either the start or
* target or both are unreachable.
*
* <p>NOTE: This prevents fallback strategies.
* @deprecated Will be removed in future releases
*/
@Deprecated
boolean allowingFailFast;

/**
Expand All @@ -82,9 +83,8 @@ public class PathfinderConfiguration {
* instead of filtering. This means that the pathfinding algorithm will prioritize paths that pass
* the filters over paths that do not.
*
* <p>Setting this to true will no longer take the {@link
* PathFilterStage}s into the validation process. Shared filters
* must still be passed.
* <p>Setting this to true will no longer take the {@link PathFilterStage}s into the validation
* process. Shared filters must still be passed.
*
* <p>{@link Pathfinder#findPath(PathPosition, PathPosition, List, List)}
*
Expand Down

0 comments on commit 846f61d

Please sign in to comment.