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 void
afterCast
(GameContext context, SpellDesc desc) protected boolean
Indicates this instance uses Java field memory to maintain state instead ofGameContext
memory like the environment or entities.Methods inherited from class net.demilich.metastone.game.spells.RecastWhileSpell
beforeCast, isFulfilled, onCast
Methods 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:Spell
Indicates this instance uses Java field memory to maintain state instead ofGameContext
memory like the environment or entities.- Overrides:
isNativeStateful
in classSpell
- Returns:
-
afterCast
- Overrides:
afterCast
in classRecastWhileSpell
-