Class CountCondition
java.lang.Object
net.demilich.metastone.game.spells.desc.condition.Condition
net.demilich.metastone.game.spells.desc.condition.CountCondition
- All Implemented Interfaces:
Serializable,HasDesc<ConditionDesc>
- Direct Known Subclasses:
CardCountCondition,GraveyardCountCondition,MinionCountCondition
true if the ConditionArg.TARGET_PLAYER has en entity-count [ ConditionArg.OPERATION ] ConditionArg.VALUE cards.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract intgetCountForPlayer(GameContext context, Player player, Entity source, Entity target) protected final booleanisFulfilled(GameContext context, Player player, ConditionDesc desc, Entity source, Entity target) protected booleanisFulfilledForTarget(GameContext context, Player player, Entity source, Entity target, TargetPlayer targetPlayer) Methods inherited from class net.demilich.metastone.game.spells.desc.condition.Condition
equals, getDesc, hashCode, isFulfilled, multipleTargetsEvaluatedAsAnd, multipleTargetsEvaluatedAsOr, requiresAtLeastOneTarget, setDesc, singleTargetOnly, targetConditionArgOverridesSuppliedTarget, usesFilter
-
Constructor Details
-
CountCondition
-
-
Method Details
-
isFulfilled
protected final boolean isFulfilled(GameContext context, Player player, ConditionDesc desc, Entity source, Entity target) - Specified by:
isFulfilledin classCondition
-
isFulfilledForTarget
protected boolean isFulfilledForTarget(GameContext context, Player player, Entity source, Entity target, TargetPlayer targetPlayer) - Overrides:
isFulfilledForTargetin classCondition
-
getCountForPlayer
protected abstract int getCountForPlayer(GameContext context, Player player, Entity source, Entity target)
-