Enum Class AimingMode

java.lang.Object
java.lang.Enum<AimingMode>
zombie.input.AimingMode
All Implemented Interfaces:
Serializable, Comparable<AimingMode>, Constable

public enum AimingMode extends Enum<AimingMode>
  • Enum Constant Details

    • UNARMED

      public static final AimingMode UNARMED
    • UNARMED_TARGET_FOUND

      public static final AimingMode UNARMED_TARGET_FOUND
    • MELEE

      public static final AimingMode MELEE
    • MELEE_TARGET_FOUND

      public static final AimingMode MELEE_TARGET_FOUND
    • RANGED

      public static final AimingMode RANGED
    • RANGED_TARGET_FOUND

      public static final AimingMode RANGED_TARGET_FOUND
    • RANGED_PRECISE

      public static final AimingMode RANGED_PRECISE
    • RANGED_PRECISE_TARGET_FOUND

      public static final AimingMode RANGED_PRECISE_TARGET_FOUND
    • NOT_AIMING

      public static final AimingMode NOT_AIMING
  • Field Details

    • lerpRateOutwards

      public final float lerpRateOutwards
    • lerpRateInwards

      public final float lerpRateInwards
    • minDistanceAmount

      public final float minDistanceAmount
    • fixedAtMinDistance

      public final boolean fixedAtMinDistance
    • hasTarget

      public final boolean hasTarget
  • Method Details

    • values

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

      public static AimingMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • lerpAiming

      public void lerpAiming(IsoPlayer player, Vector2 src, float targetX, float targetY, float centerX, float centerY, float zoom, Vector2 out_result)