Class AbstractRepeatMinionsDestroyedSpell
java.lang.Object
net.demilich.metastone.game.spells.Spell
net.demilich.metastone.game.spells.RecastWhileSpell
net.demilich.metastone.game.spells.custom.AbstractRepeatMinionsDestroyedSpell
- All Implemented Interfaces:
Serializable,HasDesc<SpellDesc>
- Direct Known Subclasses:
RecastIfMinionsDestroyedSpell,RecastUntilMinionsDestroyedSpell
A base class for spells that have to repeat recasts based on whether or not minions have been destroyed.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafterCast(GameContext context, SpellDesc desc) protected booleanIndicates this instance uses Java field memory to maintain state instead ofGameContextmemory like the environment or entities.Methods inherited from class net.demilich.metastone.game.spells.RecastWhileSpell
beforeCast, isFulfilled, onCastMethods inherited from class net.demilich.metastone.game.spells.Spell
cast, castForPlayer, checkArguments, getDesc, setDesc, toString
-
Field Details
-
minionsDestroyed
protected int minionsDestroyed
-
-
Constructor Details
-
AbstractRepeatMinionsDestroyedSpell
public AbstractRepeatMinionsDestroyedSpell()
-
-
Method Details
-
isNativeStateful
protected boolean isNativeStateful()Description copied from class:SpellIndicates this instance uses Java field memory to maintain state instead ofGameContextmemory like the environment or entities.- Overrides:
isNativeStatefulin classSpell- Returns:
-
afterCast
- Overrides:
afterCastin classRecastWhileSpell
-