Enum HeuristicMode

java.lang.Object
java.lang.Enum<HeuristicMode>
de.bsommerfeld.pathetic.api.pathing.heuristic.HeuristicMode
All Implemented Interfaces:
Serializable, Comparable<HeuristicMode>, java.lang.constant.Constable

public enum HeuristicMode extends Enum<HeuristicMode>
Represents the modes of heuristic application, defining different prioritizations or strategies for pathfinding algorithms. This enum is typically used to influence the behavior or preference when calculating paths in environments with various navigational constraints.
  • PERFORMANCE: Optimizes the heuristic calculation for faster computations, potentially compromising the precision of the resultant path. This mode is suitable for scenarios where speed is a higher priority than path accuracy.
  • PRECISION: Optimizes the heuristic calculation for greater accuracy or realism in pathfinding, which may result in slower computations. This mode is ideal for applications where precise navigation is required.
  • Enum Constant Details

  • Method Details

    • values

      public static HeuristicMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static HeuristicMode valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null