Enum Class MapleDisease
- All Implemented Interfaces:
Buffstat, Serializable, Comparable<MapleDisease>, Constable
楓之谷 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 管理。
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic final MapleDiseasegetBySkill(int skill) intintstatic final MapleDiseaseintgetValue()static MapleDiseaseReturns the enum constant of this class with the specified name.static MapleDisease[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STUN
-
POISON
-
SEAL
-
DARKNESS
-
WEAKEN
-
CURSE
-
SLOW
-
MORPH
-
SEDUCE
-
ZOMBIFY
-
REVERSE_DIRECTION
-
POTION
-
SHADOW
-
BLIND
-
FREEZE
-
DISABLE_POTENTIAL
-
TORNADO
-
FLAG
-
-
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
-
getPosition
public int getPosition()- Specified by:
getPositionin interfaceBuffstat
-
getValue
-
getDisease
public int getDisease() -
getRandom
-
getBySkill
-