Class ReservoirCondition
java.lang.Object
net.demilich.metastone.game.spells.desc.condition.Condition
net.demilich.metastone.game.spells.desc.condition.ReservoirCondition
- All Implemented Interfaces:
Serializable
,HasDesc<ConditionDesc>
true
when the number of cards in the player's deck is greater or equal to the ConditionArg.VALUE
.
If two values are specified, evalutes to true
if the number of cards in the player's deck is equal to or
between the two values.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isFulfilled
(GameContext context, Player player, ConditionDesc desc, Entity source, Entity target) static Boolean
reservoirsForced
(GameContext context, Player player, Entity source) protected boolean
Whentrue
,ConditionArg.TARGET
is evaluated instead of being interpreted by the subclass, replacingtarget
if it is specified.Methods inherited from class net.demilich.metastone.game.spells.desc.condition.Condition
equals, getDesc, hashCode, isFulfilled, isFulfilledForTarget, multipleTargetsEvaluatedAsAnd, multipleTargetsEvaluatedAsOr, requiresAtLeastOneTarget, setDesc, singleTargetOnly, usesFilter
-
Constructor Details
-
ReservoirCondition
-
-
Method Details
-
isFulfilled
protected boolean isFulfilled(GameContext context, Player player, ConditionDesc desc, Entity source, Entity target) - Specified by:
isFulfilled
in classCondition
-
reservoirsForced
-
targetConditionArgOverridesSuppliedTarget
protected boolean targetConditionArgOverridesSuppliedTarget()Description copied from class:Condition
Whentrue
,ConditionArg.TARGET
is evaluated instead of being interpreted by the subclass, replacingtarget
if it is specified.When
false
, onlytarget
is passed.- Overrides:
targetConditionArgOverridesSuppliedTarget
in classCondition
- Returns:
-