Class Aftermath
java.lang.Object
net.demilich.metastone.game.logic.CustomCloneable
net.demilich.metastone.game.entities.Entity
net.demilich.metastone.game.spells.trigger.Enchantment
net.demilich.metastone.game.spells.trigger.Aftermath
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Entity>,HasCard,Trigger
- See Also:
-
Field Summary
Fields inherited from class net.demilich.metastone.game.spells.trigger.Enchantment
activated, activationTriggers, added, copyToActor, countByValue, countUntilCast, expirationTriggers, expired, firesThisSequence, hostReference, keepAfterTransform, maxFiresPerSequence, oneTurn, persistentOwner, spell, triggers, usesSpellTrigger, zonesFields inherited from class net.demilich.metastone.game.entities.Entity
attributes, effectSource, entityLocation, name, NO_OWNER, sourceCard -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclone()Clone an entity, including its ID and location.voidexpire(GameContext context) Expires the trigger; marks it for removal and prevents it from executing in the future.protected EventTriggerDesc[]getSpell()com.hiddenswitch.spellsource.rpc.Spellsource.ZonesMessage.Zones[]getZones()booleanbooleanvoidonAdd(GameContext context, Player player, Entity source, Entity host) Called when the trigger is added into aGameContext's state.Methods inherited from class net.demilich.metastone.game.spells.trigger.Enchantment
activate, endOfSequence, fires, getActivationTriggers, getCopy, getCountUntilCast, getDefaultBattlefieldZones, getDefaultBattlefieldZonesSet, getDefaultDeckZones, getDefaultGameZones, getDefaultPassiveZones, getDefaultZones, getEntityType, getEntrySet, getExpirationTriggers, getFires, getHostReference, getMaxFires, getMaxFiresPerSequence, getOneTurn, getSourceCard, getTriggers, getUsesSpellTrigger, innerQueues, interestedIn, isCountByValue, isExpired, isKeptAfterTransform, isPersistentOwner, oneTurnOnly, onGameEvent, process, queues, setActivated, setActivationTriggers, setCopyToActor, setCountByValue, setCountUntilCast, setExpirationTriggers, setFires, setHostReference, setKeepAfterTransform, setMaxFires, setMaxFiresPerSequence, setOneTurn, setPersistentOwner, setSpell, setTriggers, setUsesSpellTrigger, setZones, shouldNotifyEnchantmentFired, toStringMethods inherited from class net.demilich.metastone.game.entities.Entity
compareTo, diedOnBattlefield, evaluateDescriptions, getAttribute, getAttributes, getAttributeValue, getAttributeValue, getCardInventoryId, getCopySource, getDescription, getDescription, getDynamicDescription, getEffectSource, getEntityLocation, getGameTriggers, getId, getIndex, getMaxNumberOfAttacks, getName, getOwner, getRace, getReference, getUserId, getZone, hasAttribute, hasPersistentEffects, isDestroyed, isInPlay, isRemovedPeacefully, modifyAttribute, modifyHpBonus, moveOrAddTo, moveOrAddTo, resetEntityLocations, setAttribute, setAttribute, setAttribute, setDescription, setEffectSource, setEntityLocation, setId, setName, setOwner, setSourceCard, setUserId, transformResolved, transformResolved
-
Constructor Details
-
Aftermath
-
-
Method Details
-
getZones
public com.hiddenswitch.spellsource.rpc.Spellsource.ZonesMessage.Zones[] getZones()- Overrides:
getZonesin classEnchantment
-
onAdd
Description copied from interface:TriggerCalled when the trigger is added into aGameContext's state.- Specified by:
onAddin interfaceTrigger- Overrides:
onAddin classEnchantment- Parameters:
context- The game context.
-
expire
Description copied from interface:TriggerExpires the trigger; marks it for removal and prevents it from executing in the future.- Specified by:
expirein interfaceTrigger- Overrides:
expirein classEnchantment
-
getSpell
- Overrides:
getSpellin classEnchantment
-
getDefaultTriggers
- Overrides:
getDefaultTriggersin classEnchantment
-
clone
Description copied from class:EntityClone an entity, including its ID and location.Use this method for emulating an "immutable" view on an entity. This kind of cloning is not suitable for most gameplay situations, because using the clone will cause two entities with identical IDs and locations to exist. Instead, a subclass will provide a
getCopy()method that is more helpful for gameplay.- Specified by:
clonein interfaceTrigger- Overrides:
clonein classEnchantment- Returns:
- An exact clone.
-
cast
- Overrides:
castin classEnchantment
-
isActivated
public boolean isActivated()- Specified by:
isActivatedin interfaceTrigger- Overrides:
isActivatedin classEnchantment
-
isCopyToActor
public boolean isCopyToActor()- Overrides:
isCopyToActorin classEnchantment
-