Class AbstractCardTrigger
java.lang.Object
net.demilich.metastone.game.logic.CustomCloneable
net.demilich.metastone.game.spells.trigger.EventTrigger
net.demilich.metastone.game.spells.trigger.AbstractCardTrigger
- All Implemented Interfaces:
Serializable
,Cloneable
,HasDesc<EventTriggerDesc>
- Direct Known Subclasses:
AfterCardPlayedTrigger
,AfterSpellCastedTrigger
,CardAddedToDeckTrigger
,CardDrawnTrigger
,CardPlayedTrigger
,CardRevealedTrigger
,InvokedTrigger
,RoastTrigger
,ShuffledTrigger
,SpellCastedTrigger
The base class for triggers that fire off card-adjacent effects.
This supports the EventTriggerArg.REQUIRED_ATTRIBUTE
, EventTriggerArg.RACE
and EventTriggerArg.CARD_TYPE
arguments on the HasCard.getSourceCard()
entity.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
innerQueues
(GameEvent event, Enchantment enchantment, Entity host) When an event this trigger isEventTrigger.interestedIn()
occurs, this test indicates whether or not the trigger should enter the queue of effects that should be evaluated.Methods inherited from class net.demilich.metastone.game.spells.trigger.EventTrigger
clone, fires, getDesc, hostConditionMet, interestedIn, queues, setDesc, toString
-
Constructor Details
-
AbstractCardTrigger
-
-
Method Details
-
innerQueues
Description copied from class:EventTrigger
When an event this trigger isEventTrigger.interestedIn()
occurs, this test indicates whether or not the trigger should enter the queue of effects that should be evaluated. This is distinct from whether or not- Specified by:
innerQueues
in classEventTrigger
- Returns:
-