Enum Class MonsterStatus
- All Implemented Interfaces:
Buffstat, Serializable, Comparable<MonsterStatus>, Constable
定義怪物所有可施加狀態效果的位元旗標列舉,實作
Buffstat 介面。
每個常數攜帶一個位元遮罩值(i)與所屬的整數欄位位置(first,
值為 1 或 2),對應封包中怪物 buff 狀態的兩個整數欄位。常數涵蓋:
- 攻防強化:
WATK、WDEF、MATK、MDEF等。 - 控制效果:
STUN、FREEZE、SEAL、DOOM等。 - 持續傷害:
POISON、BURN。 - 特殊反制:
WEAPON_IMMUNITY、MAGIC_IMMUNITY、WEAPON_DAMAGE_REFLECT等。 - 佔位符(
end=true):EMPTY、SUMMON及EMPTY_1~EMPTY_7。
getLinkedDisease(MonsterStatus) 將怪物狀態對映至對應的 MapleDisease,
用於計算怪物施加給玩家的異常狀態。由 MonsterStatusEffect 以及
MapleStatEffect 在技能效果套用時查閱。
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic final MonsterStatusgetBySkill_Pokemon(int skill) static final MapleDiseasegetLinkedDisease(MonsterStatus skill) intintgetValue()booleanisEmpty()static MonsterStatusReturns the enum constant of this class with the specified name.static MonsterStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WATK
-
WDEF
-
MATK
-
MDEF
-
ACC
-
AVOID
-
SPEED
-
STUN
-
FREEZE
-
POISON
-
SEAL
-
SHOWDOWN
-
WEAPON_ATTACK_UP
-
WEAPON_DEFENSE_UP
-
MAGIC_ATTACK_UP
-
MAGIC_DEFENSE_UP
-
DOOM
-
SHADOW_WEB
-
WEAPON_IMMUNITY
-
MAGIC_IMMUNITY
-
DAMAGE_IMMUNITY
-
NINJA_AMBUSH
-
BURN
-
DARKNESS
-
HYPNOTIZE
-
WEAPON_DAMAGE_REFLECT
-
MAGIC_DAMAGE_REFLECT
-
NEUTRALISE
-
IMPRINT
-
MONSTER_BOMB
-
MAGIC_CRASH
-
EMPTY
-
SUMMON
-
EMPTY_1
-
EMPTY_2
-
EMPTY_3
-
EMPTY_4
-
EMPTY_5
-
EMPTY_6
-
EMPTY_7
-
-
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
-
isEmpty
public boolean isEmpty() -
getValue
-
getBySkill_Pokemon
-
getLinkedDisease
-