Enum Class AimingMode
- All Implemented Interfaces:
Serializable, Comparable<AimingMode>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanfinal booleanfinal floatfinal floatfinal float -
Method Summary
Modifier and TypeMethodDescriptionvoidlerpAiming(IsoPlayer player, Vector2 src, float targetX, float targetY, float centerX, float centerY, float zoom, Vector2 out_result) static AimingModeReturns the enum constant of this class with the specified name.static AimingMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
UNARMED
-
UNARMED_TARGET_FOUND
-
MELEE
-
MELEE_TARGET_FOUND
-
RANGED
-
RANGED_TARGET_FOUND
-
RANGED_PRECISE
-
RANGED_PRECISE_TARGET_FOUND
-
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
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
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 nameNullPointerException- if the argument is null
-
lerpAiming
-