Class OneTurnCostModifier
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.cards.costmodifier.CardCostModifier
net.demilich.metastone.game.cards.costmodifier.OneTurnCostModifier
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Entity>,HasDesc<CardCostModifierDesc>,HasCard,Trigger
A card cost modifier that lasts only one turn.
- 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 TypeMethodDescriptionbooleanIndicates this trigger is only active for the current turn, then it shouldTrigger.expire(GameContext).Methods inherited from class net.demilich.metastone.game.cards.costmodifier.CardCostModifier
appliesTo, cast, clone, get, getCardType, getDefaultTriggers, getDefaultZones, getDesc, getFilter, getMinValue, getRequiredAttribute, getRequiredRace, getTargetPlayer, isPersistentOwner, onAdd, process, setDesc, shouldNotifyEnchantmentFired, targetsSelfMethods inherited from class net.demilich.metastone.game.spells.trigger.Enchantment
activate, endOfSequence, expire, fires, getActivationTriggers, getCopy, getCountUntilCast, getDefaultBattlefieldZones, getDefaultBattlefieldZonesSet, getDefaultDeckZones, getDefaultGameZones, getDefaultPassiveZones, getEntityType, getEntrySet, getExpirationTriggers, getFires, getHostReference, getMaxFires, getMaxFiresPerSequence, getOneTurn, getSourceCard, getSpell, getTriggers, getUsesSpellTrigger, getZones, innerQueues, interestedIn, isActivated, isCopyToActor, isCountByValue, isExpired, isKeptAfterTransform, onGameEvent, process, queues, setActivated, setActivationTriggers, setCopyToActor, setCountByValue, setCountUntilCast, setExpirationTriggers, setFires, setHostReference, setKeepAfterTransform, setMaxFires, setMaxFiresPerSequence, setOneTurn, setPersistentOwner, setSpell, setTriggers, setUsesSpellTrigger, setZones, 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
-
OneTurnCostModifier
-
-
Method Details
-
oneTurnOnly
public boolean oneTurnOnly()Description copied from interface:TriggerIndicates this trigger is only active for the current turn, then it shouldTrigger.expire(GameContext).- Specified by:
oneTurnOnlyin interfaceTrigger- Overrides:
oneTurnOnlyin classEnchantment- Returns:
trueif this is a one-turn long trigger.
-