Class EventTrigger

java.lang.Object
net.demilich.metastone.game.logic.CustomCloneable
net.demilich.metastone.game.spells.trigger.EventTrigger
All Implemented Interfaces:
Serializable, Cloneable, HasDesc<EventTriggerDesc>
Direct Known Subclasses:
AbstractCardTrigger, AbstractSummonTrigger, ArmorChangedTrigger, AttributeAppliedTrigger, BoardChangedTrigger, CardReceivedTrigger, DamageCausedTrigger, DamageReceivedTrigger, DidEndSequenceTrigger, DiscardTrigger, DiscoverTrigger, DrainTrigger, EnrageChangedTrigger, ExcessHealingTrigger, FatigueTrigger, GameStartTrigger, GameStateChangedTrigger, HealingTrigger, HeroPowerUsedTrigger, InspireTrigger, LoseDeflectTrigger, LoseDivineShieldTrigger, LoseStealthTrigger, MaxHpIncreasedTrigger, MaxManaChangedTrigger, MinionDeathTrigger, ModifyCurrentManaTrigger, NullTrigger, OverloadTrigger, PhysicalAttackTrigger, PreDamageTrigger, PreGameStartTrigger, QuestPlayedTrigger, QuestSuccessTrigger, ReturnToHandTrigger, SecretPlayedTrigger, SecretRevealedTrigger, SilenceTrigger, TargetAcquisitionTrigger, TurnTrigger, WeaponDestroyedTrigger, WeaponEquippedTrigger, WillEndSequenceTrigger

public abstract class EventTrigger extends CustomCloneable implements Serializable, HasDesc<EventTriggerDesc>
This is the base class of all effects that react to events in the game.

These subclasses correspond to the "class" field on the "eventTrigger" property of the EnchantmentDesc. For example, TurnEndTrigger corresponds to the "TurnEndTrigger" string found in this EnchantmentDesc written on a card:

   "trigger": {
     "eventTrigger": {
       "class": "TurnEndTrigger"
     },
     "spell": ...
   }
 
See Also:
  • Constructor Details

  • Method Details