Enum Class FieldLimitType
- All Implemented Interfaces:
Serializable, Comparable<FieldLimitType>, Constable
地圖場地限制旗標的列舉,對應 WZ 資料中
fieldLimit 位元欄位。
每個列舉值持有一個位元遮罩(int),可透過 check(fieldlimit)
方法檢查指定地圖的 fieldLimit 值是否啟用該限制。
常見限制包含禁止跳躍(Jump)、禁止移動技能(MovementSkills)、
禁止神秘之門(MysticDoor)、禁止換頻(ChannelSwitch)等;
由 MapleMap 在玩家嘗試使用對應功能時呼叫以決定是否阻擋。
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionfinal booleancheck(int fieldlimit) final intgetValue()static FieldLimitTypeReturns the enum constant of this class with the specified name.static FieldLimitType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Jump
-
MovementSkills
-
SummoningBag
-
MysticDoor
-
ChannelSwitch
-
RegularExpLoss
-
VipRock
-
Minigames
-
Mount
-
PotionUse
-
Event
-
Pet
-
Event2
-
DropDown
-
-
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
-
getValue
public final int getValue() -
check
public final boolean check(int fieldlimit)
-