Enum Class AttackType
- All Implemented Interfaces:
Serializable, Comparable<AttackType>, Constable
攻擊類型的列舉,用於區分近戰、遠程、影分身遠程與鏡像近戰四種攻擊模式。
由 DamageParse 在解析攻擊封包時決定攻擊類型,
進而影響傷害計算方式(如遠程武器彈藥消耗、影分身額外傷害等)。
NON_RANGED— 一般近戰攻擊。RANGED— 遠程攻擊(弓、弩、鏢、子彈)。RANGED_WITH_SHADOWPARTNER— 搭配影分身的遠程攻擊(盜賊系)。NON_RANGED_WITH_MIRROR— 搭配鏡像的近戰攻擊。
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic AttackTypeReturns the enum constant of this class with the specified name.static AttackType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NON_RANGED
-
RANGED
-
RANGED_WITH_SHADOWPARTNER
-
NON_RANGED_WITH_MIRROR
-
-
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
-