Enum Class Environment
- All Implemented Interfaces:
Serializable
,Comparable<Environment>
,Constable
A collection of environment variables.
This enum contains the keys to the GameState.environment
field, and they help implement various card texts
that modify other card texts.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis variable stores a stack of attackers.This variable stores overrides to the next amount of damage dealt by aDamageSpell
.Stores the deathrattles triggered throughout the game.This variable stores the number of minions that have been destroyed so far during this sequence.This implements Frostmourne and other entity tracking effects.Stores a stack of event sources.This variable stores a stack of event targets, as events are executed one after another until all events are processed.This implements SpellstonesThis variable stores the last minion that was killed.This variable stores a reference to the last card played for each playerThis variable stores a reference to the last card played for each player before the card this attribute is written on.This variable stores the mana cost of the last card played.This variable stores a reference to the last spell played by each player this turn.This variable stores how many minions have been summoned this turn.Deprecated.This variable stores a stack of entities that were output by spells.Stores the cards that are currently selected to be randomly played, preventing them from being randomly played more than once per sequence.This entity list implements Bonefetcher, keeping track of the cards that were shuffled in each player's deck.This variable stores the current target of a spell.This implements Living Mana and Earthen Scales.This variable stores the player that was chosen as the starting playerThis variable stores the minions that are pending a summon.This variable stores the current target of an event or action.This variable, when defined, specifies that the target of a spell or physical attack should be overriden.Stores the next target of anGameLogic.castSpell(int, SpellDesc, EntityReference, EntityReference, TargetSelection, boolean, GameAction)
invocation to allow it to be modified.This variable stores a reference to the new minion as a result of a transform.Stores the stack of trigger hosts as triggers are processed -
Method Summary
Modifier and TypeMethodDescriptionstatic Environment
Returns the enum constant of this class with the specified name.static Environment[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STARTING_PLAYER
This variable stores the player that was chosen as the starting player -
SUMMON_REFERENCE_STACK
This variable stores the minions that are pending a summon.This implements Faceless Manipulator.
-
KILLED_MINION
This variable stores the last minion that was killed. -
DESTROYED_THIS_SEQUENCE_COUNT
This variable stores the number of minions that have been destroyed so far during this sequence. -
TARGET_OVERRIDE
This variable, when defined, specifies that the target of a spell or physical attack should be overriden. -
LAST_CARD_PLAYED
This variable stores a reference to the last card played for each player -
LAST_CARD_PLAYED_BEFORE_CURRENT_SEQUENCE
This variable stores a reference to the last card played for each player before the card this attribute is written on. Helps implement Study. -
LAST_SPELL_PLAYED_THIS_TURN
This variable stores a reference to the last spell played by each player this turn.Implements Recurring Torrent.
-
ATTACKER_REFERENCE_STACK
This variable stores a stack of attackers. -
EVENT_TARGET_REFERENCE_STACK
This variable stores a stack of event targets, as events are executed one after another until all events are processed.This implements card texts that read, "take double damage," and implements
EntityReference.EVENT_TARGET
. -
TARGET
This variable stores the current target of an event or action. This variable is consulted forEntityReference.TARGET
. -
SPELL_TARGET
This variable stores the current target of a spell. -
TRANSFORM_REFERENCE
This variable stores a reference to the new minion as a result of a transform.This implements Faceless Manipulator.
-
DAMAGE_STACK
This variable stores overrides to the next amount of damage dealt by aDamageSpell
.This implements cards like Magic Armor.
-
OUTPUTS
This variable stores a stack of entities that were output by spells. The variable can be referenced withEntityReference.OUTPUT
.This implements Ivory Knight.
-
LAST_MANA_COST
This variable stores the mana cost of the last card played.This implements Atiesh, the weapon granted by Medivh, the Guardian
-
LAST_SUMMON_THIS_TURN
This variable stores how many minions have been summoned this turn. -
SPELL_VALUE_STACK
This implements Living Mana and Earthen Scales. -
EVENT_VALUE_STACK
This implements Spellstones -
ENTITY_LIST
This implements Frostmourne and other entity tracking effects. For example, it keeps track of which particular entities a particular Frostmourne has destroyed. -
LYNESSA_SUNSORROW_ENTITY_LIST
Deprecated.This entity list implements Lynessa Sunsorrow, keeping track of each spell cast a player cast on his own minions. -
SHUFFLED_CARDS_LIST
This entity list implements Bonefetcher, keeping track of the cards that were shuffled in each player's deck. -
EVENT_SOURCE_REFERENCE_STACK
Stores a stack of event sources. -
TRIGGER_HOST_STACK
Stores the stack of trigger hosts as triggers are processed -
TARGET_OVERRIDE_STACK
Stores the next target of anGameLogic.castSpell(int, SpellDesc, EntityReference, EntityReference, TargetSelection, boolean, GameAction)
invocation to allow it to be modified. -
DEATHRATTLES_TRIGGERED
Stores the deathrattles triggered throughout the game. -
RANDOMLY_PLAYED_QUEUE
Stores the cards that are currently selected to be randomly played, preventing them from being randomly played more than once per sequence.
-
-
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
-