Enum Class PlayerAttribute
- All Implemented Interfaces:
Serializable
,Comparable<PlayerAttribute>
,Constable
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" }
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe total amount of armor lost this gameThe number of cards the player has discarded this game.The total number of cards the player has drawnIndicates the amount of damage the player's hero has taken this turn.The number of cards in the player's deck.The number of cards in the player's hand.The total healing done by friendly sourcesThe total damage dealt by the player's hero power this gameThe number of times the player's hero power has been used this turn.The number of cards the player hasAttribute.INVOKED
this game.The last amount of mana spent on a card by the player.The current amount of overloaded/locked mana the player has.The current amount of mana the player has.The number of mana crystals the player has.The number of mana crystals the player has overloaded this game.The number of secrets the player has.The number of spells the player has cast this game.The number ofSupremacySpell
effects this player has done this game. -
Method Summary
Modifier and TypeMethodDescriptionstatic PlayerAttribute
Returns the enum constant of this class with the specified name.static PlayerAttribute[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MANA
The current amount of mana the player has. -
MAX_MANA
The number of mana crystals the player has. -
HAND_COUNT
The number of cards in the player's hand. -
HERO_POWER_USED
The number of times the player's hero power has been used this turn. -
DECK_COUNT
The number of cards in the player's deck. -
LAST_MANA_COST
The last amount of mana spent on a card by the player. -
SECRET_COUNT
The number of secrets the player has. -
SPELLS_CAST
The number of spells the player has cast this game. -
OVERLOADED_THIS_GAME
The number of mana crystals the player has overloaded this game. -
CARDS_DISCARDED
The number of cards the player has discarded this game. -
INVOKED_CARDS
The number of cards the player hasAttribute.INVOKED
this game. -
SUPREMACIES_THIS_GAME
The number ofSupremacySpell
effects this player has done this game. -
DAMAGE_THIS_TURN
Indicates the amount of damage the player's hero has taken this turn. -
LOCKED_MANA
The current amount of overloaded/locked mana the player has. -
HERO_POWER_DAMAGE_DEALT
The total damage dealt by the player's hero power this game -
CARDS_DRAWN
The total number of cards the player has drawn -
HEALING_DONE
The total healing done by friendly sources -
ARMOR_LOST
The total amount of armor lost this game
-
-
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
-