Enum Class MapleDisease

All Implemented Interfaces:
Buffstat, Serializable, Comparable<MapleDisease>, Constable

public enum MapleDisease extends Enum<MapleDisease> implements Serializable, Buffstat
楓之谷 v149 怪物技能施加的負面狀態(debuff/疾病)列舉。

每個常數持有封包位元值(i)、所屬欄位位置(first)以及 對應的 debuff 技能 ID(disease),實作 Buffstat 介面 以統一與 MapleBuffStat 共用封包組裝路徑。

涵蓋的狀態類型包含:昏迷(STUN)、中毒(POISON)、封印(SEAL)、 黑暗(DARKNESS)、虛弱(WEAKEN)、詛咒(CURSE)、減速(SLOW)、 變身(MORPH)、魅惑(SEDUCE)、殭屍(ZOMBIFY)等。

getBySkill(int) 依技能 ID 取得對應列舉值,供 MobSkill 施加 debuff 時使用;getRandom() 隨機回傳一個狀態,用於部分怪物技能。 執行期狀態由 MapleDiseaseValueHolder 持有,並由 CharacterCooldownDiseaseManager 管理。

  • Enum Constant Details

  • Method Details

    • values

      public static MapleDisease[] 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 MapleDisease 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
    • getPosition

      public int getPosition()
      Specified by:
      getPosition in interface Buffstat
    • getValue

      public int getValue()
      Specified by:
      getValue in interface Buffstat
    • getDisease

      public int getDisease()
    • getRandom

      public static final MapleDisease getRandom()
    • getBySkill

      public static final MapleDisease getBySkill(int skill)