Class NoggenfoggerAura
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.aura.Aura
net.demilich.metastone.game.spells.aura.EffectlessAura
net.demilich.metastone.game.spells.aura.NoggenfoggerAura
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Entity>
,HasDesc<AuraDesc>
,HasCard
,Trigger
- Direct Known Subclasses:
CaptnCookishAura
Noggenfogger auras override the target acquisitions of both players whenever
getValidTargets(GameContext, TargetAcquisitionEvent)
returns a non-empty list of entities.
This aura's getValidTargets
method can be overridden to support other kinds of retargeting.
- See Also:
-
Field Summary
Fields inherited from class net.demilich.metastone.game.spells.aura.Aura
EMPTY_TRIGGERS
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 TypeMethodDescriptiongetValidTargets
(GameContext context, TargetAcquisitionEvent event) Based on the specified target acquisition event, override the target to a random one from the list returned by this method.void
onGameEvent
(GameEvent originalEvent) Handles an event this triggerTrigger.queues(GameEvent)
for and isTrigger.interestedIn(com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType)
.Methods inherited from class net.demilich.metastone.game.spells.aura.EffectlessAura
getApplyAuraEffect, getRemoveAuraEffect
Methods inherited from class net.demilich.metastone.game.spells.aura.Aura
affects, applied, applyAuraEffect, cast, clone, expire, getAffectedEntities, getCondition, getCopy, getDesc, getDescription, getEntityFilter, getName, getSecondaryTarget, getTargets, isPersistentOwner, notApplied, onAdd, removeAuraEffect, setDesc
Methods inherited from class net.demilich.metastone.game.spells.trigger.Enchantment
activate, endOfSequence, fires, getActivationTriggers, getCountUntilCast, getDefaultBattlefieldZones, getDefaultBattlefieldZonesSet, getDefaultDeckZones, getDefaultGameZones, getDefaultPassiveZones, getDefaultZones, getEntityType, getEntrySet, getExpirationTriggers, getFires, getHostReference, getMaxFires, getMaxFiresPerSequence, getOneTurn, getSourceCard, getSpell, getTriggers, getUsesSpellTrigger, getZones, innerQueues, interestedIn, isActivated, isCopyToActor, isCountByValue, isExpired, isKeptAfterTransform, oneTurnOnly, process, queues, setActivated, setActivationTriggers, setCopyToActor, setCountByValue, setCountUntilCast, setExpirationTriggers, setFires, setHostReference, setKeepAfterTransform, setMaxFires, setMaxFiresPerSequence, setOneTurn, setPersistentOwner, setSpell, setTriggers, setUsesSpellTrigger, setZones, shouldNotifyEnchantmentFired, toString
Methods inherited from class net.demilich.metastone.game.entities.Entity
compareTo, diedOnBattlefield, evaluateDescriptions, getAttribute, getAttributes, getAttributeValue, getAttributeValue, getCardInventoryId, getCopySource, getDescription, getDynamicDescription, getEffectSource, getEntityLocation, getGameTriggers, getId, getIndex, getMaxNumberOfAttacks, 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
-
NoggenfoggerAura
-
-
Method Details
-
onGameEvent
Description copied from interface:Trigger
Handles an event this triggerTrigger.queues(GameEvent)
for and isTrigger.interestedIn(com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType)
.- Specified by:
onGameEvent
in interfaceTrigger
- Overrides:
onGameEvent
in classAura
- Parameters:
originalEvent
- The game event this trigger is now processing.
-
getValidTargets
Based on the specified target acquisition event, override the target to a random one from the list returned by this method. If the targets are empty, no override occurs.- Parameters:
context
- The contextevent
- The event- Returns:
- A
List
of entities to choose randomly from, or an empty list if there are no valid targets / an override should not occur.
-
getDefaultTriggers
- Overrides:
getDefaultTriggers
in classAura
-