Enum AimLimit

java.lang.Object
java.lang.Enum<AimLimit>
squidpony.squidai.AimLimit
All Implemented Interfaces:
Serializable, Comparable<AimLimit>, Constable

public enum AimLimit
extends Enum<AimLimit>
Enum used for common targeting limitations (or lack thereof, in the case of AimLimit.FREE ). AimLimit.ORTHOGONAL will limit single targets or the centers/aimed-at-cells of AOE effects to cells directly, north, south, east or west of the user. AimLimit.DIAGONAL does the same but for northeast, southeast, southwest, or northwest. AimLimit.EIGHT_WAY limits the same things, but is less restrictive, allowing all cells AimLimit.ORTHOGONAL does as well as all cells AimLimit.DIAGONAL allows. AimLimit.FREE allows all cells within any range limit an ability may have. Created by Tommy Ettinger on 12/17/2015.
  • Enum Constant Details

  • Method Details

    • values

      public static AimLimit[] 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 AimLimit 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