Enum Class MapleWeaponType
- All Implemented Interfaces:
Serializable, Comparable<MapleWeaponType>, Constable
武器類型的列舉,定義各類武器的傷害乘數與基礎熟練度。
每個常數(以繁體中文命名,如 弓、雙手劍、火槍)持有:
damageMultiplier:最大傷害倍率,供傷害計算公式使用baseMastery:未習得熟練技能時的基礎熟練度百分比
由 server.MapleItemInformationProvider 根據武器道具 ID 映射至對應類型,
再由 handling.channel.handler.DamageParse 在計算攻擊傷害時取用乘數。
未知 常數作為查詢失敗時的預設回傳值。
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionfinal intfinal floatstatic MapleWeaponTypeReturns the enum constant of this class with the specified name.static MapleWeaponType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
沒有武器
-
弓
-
拳套
-
手杖
-
短劍
-
弩
-
單手斧
-
單手劍
-
單手棍
-
雙手斧
-
雙手劍
-
雙手棍
-
槍
-
矛
-
長杖
-
短杖
-
指虎
-
火槍
-
火砲
-
雙弩
-
魔法箭
-
雙刀
-
未知
-
-
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
-
getMaxDamageMultiplier
public final float getMaxDamageMultiplier() -
getBaseMastery
public final int getBaseMastery()
-