Package wizardquest.abilities
Enum Class UpgradeEnum
- All Implemented Interfaces:
Serializable,Comparable<UpgradeEnum>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionapplyUpgrade(PlayerInterface player) Applies an upgrade to a given player.Get the human readable name for the upgrade.intgetPrice()Returns the name of the upgrade following the telemetry specification.static UpgradeEnumReturns the enum constant of this class with the specified name.static UpgradeEnum[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PHYSICAL_DAMAGE_RESISTANCE
-
FIRE_DAMAGE_RESISTANCE
-
WATER_DAMAGE_RESISTANCE
-
THUNDER_DAMAGE_RESISTANCE
-
SLASH_UNLOCK
-
ABSOLUTE_PULSE_UNLOCK
-
WATER_JET_UNLOCK
-
FIRE_BALL_UNLOCK
-
THUNDER_STORM_UNLOCK
-
-
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
-
getPrice
public int getPrice() -
applyUpgrade
public PlayerInterface applyUpgrade(PlayerInterface player) throws IllegalStateException, IllegalArgumentException Applies an upgrade to a given player.- Parameters:
player- the player to decorate with the upgrade.- Returns:
- a reference to the decorated player.
- Throws:
IllegalStateException- if the decoration fails due to reflection failing.IllegalArgumentException
-
getTelemetryName
Returns the name of the upgrade following the telemetry specification.- Returns:
- the name of the upgrade.
-
getDisplayName
Get the human readable name for the upgrade.- Returns:
- the display name.
-