Class Secret
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.secrets.Secret
- All Implemented Interfaces:
- Serializable,- Cloneable,- Comparable<Entity>,- HasCard,- Trigger
- See Also:
- 
Field SummaryFields inherited from class net.demilich.metastone.game.spells.trigger.Enchantmentactivated, 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.Entityattributes, effectSource, entityLocation, name, NO_OWNER, sourceCard
- 
Constructor SummaryConstructorsConstructorDescriptionSecret(EnchantmentDesc desc, Card source) Secret(EventTrigger trigger, SpellDesc spell, Card source) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidclone()Clone an entity, including its ID and location.com.hiddenswitch.spellsource.rpc.Spellsource.EntityTypeMessage.EntityTypeGets the type of entity this is.getName()Gets the name of the entity (typically the name of the card that created this entity).com.hiddenswitch.spellsource.rpc.Spellsource.ZonesMessage.Zones[]getZones()voidonGameEvent(GameEvent event) Handles an event this triggerTrigger.queues(GameEvent)for and isTrigger.interestedIn(com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType).protected booleanCasts the effects of this enchantment.Methods inherited from class net.demilich.metastone.game.spells.trigger.Enchantmentactivate, endOfSequence, expire, fires, getActivationTriggers, getCopy, getCountUntilCast, getDefaultBattlefieldZones, getDefaultBattlefieldZonesSet, getDefaultDeckZones, getDefaultGameZones, getDefaultPassiveZones, getDefaultTriggers, getDefaultZones, getEntrySet, getExpirationTriggers, getFires, getHostReference, getMaxFires, getMaxFiresPerSequence, getOneTurn, getSourceCard, getSpell, getTriggers, getUsesSpellTrigger, innerQueues, interestedIn, isActivated, isCopyToActor, isCountByValue, isExpired, isKeptAfterTransform, isPersistentOwner, onAdd, oneTurnOnly, 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.EntitycompareTo, diedOnBattlefield, evaluateDescriptions, getAttribute, getAttributes, getAttributeValue, getAttributeValue, getCardInventoryId, getCopySource, getDescription, 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- 
Secret
- 
Secret
 
- 
- 
Method Details- 
processDescription copied from class:EnchantmentCasts the effects of this enchantment.- Overrides:
- processin class- Enchantment
- Returns:
- trueif processing succeeded.
 
- 
onGameEventDescription copied from interface:TriggerHandles an event this triggerTrigger.queues(GameEvent)for and isTrigger.interestedIn(com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType).- Specified by:
- onGameEventin interface- Trigger
- Overrides:
- onGameEventin class- Enchantment
- Parameters:
- event- The game event this trigger is now processing.
 
- 
getNameDescription copied from class:EntityGets the name of the entity (typically the name of the card that created this entity). Or, overridden by theAttribute.NAMEattribute set in this entity's attributes.
- 
getEntityTypepublic com.hiddenswitch.spellsource.rpc.Spellsource.EntityTypeMessage.EntityType getEntityType()Description copied from class:EntityGets the type of entity this is. These will very nearly match up with the classes, but are primarily used for filters that e.g. draw a Spell or destroy all Secrets.- Overrides:
- getEntityTypein class- Enchantment
- Returns:
- An Spellsource.EntityTypeMessage.EntityType
 
- 
cloneDescription 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 interface- Trigger
- Overrides:
- clonein class- Enchantment
- Returns:
- An exact clone.
 
- 
cast- Overrides:
- castin class- Enchantment
 
- 
getZonespublic com.hiddenswitch.spellsource.rpc.Spellsource.ZonesMessage.Zones[] getZones()- Overrides:
- getZonesin class- Enchantment
 
 
-