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, zones
Fields inherited from class net.demilich.metastone.game.entities.Entity
attributes, effectSource, entityLocation, name, NO_OWNER, sourceCard
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates 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, targetsSelf
Methods 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, toString
Methods 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:Trigger
Indicates this trigger is only active for the current turn, then it shouldTrigger.expire(GameContext)
.- Specified by:
oneTurnOnly
in interfaceTrigger
- Overrides:
oneTurnOnly
in classEnchantment
- Returns:
true
if this is a one-turn long trigger.
-