Class CardCountCondition
java.lang.Object
net.demilich.metastone.game.spells.desc.condition.Condition
net.demilich.metastone.game.spells.desc.condition.CountCondition
net.demilich.metastone.game.spells.desc.condition.CardCountCondition
- All Implemented Interfaces:
Serializable
,HasDesc<ConditionDesc>
Counts the number of cards in the player's hand, and evalutes to
true
if the count equals the ConditionArg.VALUE
.
ConditionArg.FILTER
is used to filter the cards counted; or, if not specified, ConditionArg.CARD_FILTER
is used; or the total hand count is used.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected int
getCountForPlayer
(GameContext context, Player player, Entity source, Entity target) Methods inherited from class net.demilich.metastone.game.spells.desc.condition.CountCondition
isFulfilled, isFulfilledForTarget
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
-
CardCountCondition
-
-
Method Details
-
getCountForPlayer
- Specified by:
getCountForPlayer
in classCountCondition
-