Class EnvironmentAftermathTriggeredList
java.lang.Object
net.demilich.metastone.game.environment.EnvironmentAftermathTriggeredList
- All Implemented Interfaces:
Serializable
,Cloneable
,EnvironmentValue
public final class EnvironmentAftermathTriggeredList
extends Object
implements EnvironmentValue, Serializable
Keeps tracks of which aftermaths were triggered this game.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Describes a particular triggering of an aftermath -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAftermath
(int playerId, EntityReference source, SpellDesc spell, String cardId) Records a aftermath as triggered.Gets all the aftermaths triggered this gamegetCopy()
-
Constructor Details
-
EnvironmentAftermathTriggeredList
public EnvironmentAftermathTriggeredList()
-
-
Method Details
-
getCopy
- Specified by:
getCopy
in interfaceEnvironmentValue
-
addAftermath
Records a aftermath as triggered. Thespell
should be immutable because it is not cloned.- Parameters:
playerId
-source
-spell
-
-
getAftermaths
Gets all the aftermaths triggered this game- Returns:
-