Enum Class MonsterStatus

java.lang.Object
java.lang.Enum<MonsterStatus>
client.status.MonsterStatus
All Implemented Interfaces:
Buffstat, Serializable, Comparable<MonsterStatus>, Constable

public enum MonsterStatus extends Enum<MonsterStatus> implements Serializable, Buffstat
定義怪物所有可施加狀態效果的位元旗標列舉,實作 Buffstat 介面。

每個常數攜帶一個位元遮罩值(i)與所屬的整數欄位位置(first, 值為 1 或 2),對應封包中怪物 buff 狀態的兩個整數欄位。常數涵蓋:

  • 攻防強化:WATKWDEFMATKMDEF 等。
  • 控制效果:STUNFREEZESEALDOOM 等。
  • 持續傷害:POISONBURN
  • 特殊反制:WEAPON_IMMUNITYMAGIC_IMMUNITYWEAPON_DAMAGE_REFLECT 等。
  • 佔位符(end=true):EMPTYSUMMONEMPTY_1~EMPTY_7

getLinkedDisease(MonsterStatus) 將怪物狀態對映至對應的 MapleDisease, 用於計算怪物施加給玩家的異常狀態。由 MonsterStatusEffect 以及 MapleStatEffect 在技能效果套用時查閱。

  • Enum Constant Details

  • Method Details

    • values

      public static MonsterStatus[] 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 MonsterStatus 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
    • isEmpty

      public boolean isEmpty()
    • getValue

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

      public static final MonsterStatus getBySkill_Pokemon(int skill)
    • getLinkedDisease

      public static final MapleDisease getLinkedDisease(MonsterStatus skill)