Class GraveyardContainsCondition
java.lang.Object
net.demilich.metastone.game.spells.desc.condition.Condition
net.demilich.metastone.game.spells.desc.condition.GraveyardContainsCondition
- All Implemented Interfaces:
Serializable,HasDesc<ConditionDesc>
true if the graveyard contains an Actor that Entity.diedOnBattlefield() with the card ID from
ConditionArg.CARD or the target's source card.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisFulfilled(GameContext context, Player player, ConditionDesc desc, Entity source, Entity target) protected booleanExpects a single target only.Methods inherited from class net.demilich.metastone.game.spells.desc.condition.Condition
equals, getDesc, hashCode, isFulfilled, isFulfilledForTarget, multipleTargetsEvaluatedAsAnd, multipleTargetsEvaluatedAsOr, requiresAtLeastOneTarget, setDesc, targetConditionArgOverridesSuppliedTarget, usesFilter
-
Constructor Details
-
GraveyardContainsCondition
-
-
Method Details
-
isFulfilled
protected boolean isFulfilled(GameContext context, Player player, ConditionDesc desc, Entity source, Entity target) - Specified by:
isFulfilledin classCondition
-
singleTargetOnly
protected boolean singleTargetOnly()Description copied from class:ConditionExpects a single target only. Used in conjunction withCondition.targetConditionArgOverridesSuppliedTarget().- Overrides:
singleTargetOnlyin classCondition- Returns:
-