Enum Class AttackType

java.lang.Object
java.lang.Enum<AttackType>
handling.channel.handler.AttackType
All Implemented Interfaces:
Serializable, Comparable<AttackType>, Constable

public enum AttackType extends Enum<AttackType>
攻擊類型的列舉,用於區分近戰、遠程、影分身遠程與鏡像近戰四種攻擊模式。

DamageParse 在解析攻擊封包時決定攻擊類型, 進而影響傷害計算方式(如遠程武器彈藥消耗、影分身額外傷害等)。

  • NON_RANGED — 一般近戰攻擊。
  • RANGED — 遠程攻擊(弓、弩、鏢、子彈)。
  • RANGED_WITH_SHADOWPARTNER — 搭配影分身的遠程攻擊(盜賊系)。
  • NON_RANGED_WITH_MIRROR — 搭配鏡像的近戰攻擊。
  • Enum Constant Details

    • NON_RANGED

      public static final AttackType NON_RANGED
    • RANGED

      public static final AttackType RANGED
    • RANGED_WITH_SHADOWPARTNER

      public static final AttackType RANGED_WITH_SHADOWPARTNER
    • NON_RANGED_WITH_MIRROR

      public static final AttackType NON_RANGED_WITH_MIRROR
  • Method Details

    • values

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