Enum Class PlayerAttribute

java.lang.Object
java.lang.Enum<PlayerAttribute>
net.demilich.metastone.game.spells.PlayerAttribute
All Implemented Interfaces:
Serializable, Comparable<PlayerAttribute>, Constable

public enum PlayerAttribute extends Enum<PlayerAttribute>
Indicates a measurement about a player to use with PlayerAttributeValueProvider.

For example, to retrieve the amount of mana a player has:

   {
     "class": "PlayerAttributeValueProvider",
     "playerAttribute": "MANA"
   }
 
  • Enum Constant Details

    • MANA

      public static final PlayerAttribute MANA
      The current amount of mana the player has.
    • MAX_MANA

      public static final PlayerAttribute MAX_MANA
      The number of mana crystals the player has.
    • HAND_COUNT

      public static final PlayerAttribute HAND_COUNT
      The number of cards in the player's hand.
    • HERO_POWER_USED

      public static final PlayerAttribute HERO_POWER_USED
      The number of times the player's hero power has been used this turn.
    • DECK_COUNT

      public static final PlayerAttribute DECK_COUNT
      The number of cards in the player's deck.
    • LAST_MANA_COST

      public static final PlayerAttribute LAST_MANA_COST
      The last amount of mana spent on a card by the player.
    • SECRET_COUNT

      public static final PlayerAttribute SECRET_COUNT
      The number of secrets the player has.
    • SPELLS_CAST

      public static final PlayerAttribute SPELLS_CAST
      The number of spells the player has cast this game.
    • OVERLOADED_THIS_GAME

      public static final PlayerAttribute OVERLOADED_THIS_GAME
      The number of mana crystals the player has overloaded this game.
    • CARDS_DISCARDED

      public static final PlayerAttribute CARDS_DISCARDED
      The number of cards the player has discarded this game.
    • INVOKED_CARDS

      public static final PlayerAttribute INVOKED_CARDS
      The number of cards the player has Attribute.INVOKED this game.
    • SUPREMACIES_THIS_GAME

      public static final PlayerAttribute SUPREMACIES_THIS_GAME
      The number of SupremacySpell effects this player has done this game.
    • DAMAGE_THIS_TURN

      public static final PlayerAttribute DAMAGE_THIS_TURN
      Indicates the amount of damage the player's hero has taken this turn.
    • LOCKED_MANA

      public static final PlayerAttribute LOCKED_MANA
      The current amount of overloaded/locked mana the player has.
    • HERO_POWER_DAMAGE_DEALT

      public static final PlayerAttribute HERO_POWER_DAMAGE_DEALT
      The total damage dealt by the player's hero power this game
    • CARDS_DRAWN

      public static final PlayerAttribute CARDS_DRAWN
      The total number of cards the player has drawn
    • HEALING_DONE

      public static final PlayerAttribute HEALING_DONE
      The total healing done by friendly sources
    • ARMOR_LOST

      public static final PlayerAttribute ARMOR_LOST
      The total amount of armor lost this game
  • Method Details

    • values

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