Enum Class UpgradeEnum

java.lang.Object
java.lang.Enum<UpgradeEnum>
wizardquest.abilities.UpgradeEnum
All Implemented Interfaces:
Serializable, Comparable<UpgradeEnum>, Constable

public enum UpgradeEnum extends Enum<UpgradeEnum>
  • Enum Constant Details

    • PHYSICAL_DAMAGE_RESISTANCE

      public static final UpgradeEnum PHYSICAL_DAMAGE_RESISTANCE
    • FIRE_DAMAGE_RESISTANCE

      public static final UpgradeEnum FIRE_DAMAGE_RESISTANCE
    • WATER_DAMAGE_RESISTANCE

      public static final UpgradeEnum WATER_DAMAGE_RESISTANCE
    • THUNDER_DAMAGE_RESISTANCE

      public static final UpgradeEnum THUNDER_DAMAGE_RESISTANCE
    • SLASH_UNLOCK

      public static final UpgradeEnum SLASH_UNLOCK
    • ABSOLUTE_PULSE_UNLOCK

      public static final UpgradeEnum ABSOLUTE_PULSE_UNLOCK
    • WATER_JET_UNLOCK

      public static final UpgradeEnum WATER_JET_UNLOCK
    • FIRE_BALL_UNLOCK

      public static final UpgradeEnum FIRE_BALL_UNLOCK
    • THUNDER_STORM_UNLOCK

      public static final UpgradeEnum THUNDER_STORM_UNLOCK
  • Method Details

    • values

      public static UpgradeEnum[] 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

      public static UpgradeEnum valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getPrice

      public int getPrice()
    • applyUpgrade

      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

      public String getTelemetryName()
      Returns the name of the upgrade following the telemetry specification.
      Returns:
      the name of the upgrade.
    • getDisplayName

      public String getDisplayName()
      Get the human readable name for the upgrade.
      Returns:
      the display name.