Class AllMatchFilterCondition
java.lang.Object
net.demilich.metastone.game.spells.desc.condition.Condition
net.demilich.metastone.game.spells.desc.condition.AllMatchFilterCondition
- All Implemented Interfaces:
Serializable
,HasDesc<ConditionDesc>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isFulfilled
(GameContext context, Player player, ConditionDesc desc, Entity source, Entity target) protected boolean
WhenCondition.targetConditionArgOverridesSuppliedTarget()
istrue
, the result of the condition on each of the resolved targets isand
-ed if this istrue
.protected boolean
WhenCondition.targetConditionArgOverridesSuppliedTarget()
istrue
, the result of the condition on each of the resolved targets isor
-ed if this istrue
.protected boolean
Whentrue
andCondition.multipleTargetsEvaluatedAsAnd()
, there must be at least one target in the resolved targets.protected boolean
Expects a single target only.protected boolean
Methods inherited from class net.demilich.metastone.game.spells.desc.condition.Condition
equals, getDesc, hashCode, isFulfilled, isFulfilledForTarget, setDesc, targetConditionArgOverridesSuppliedTarget
-
Constructor Details
-
AllMatchFilterCondition
-
-
Method Details
-
isFulfilled
protected boolean isFulfilled(GameContext context, Player player, ConditionDesc desc, Entity source, Entity target) - Specified by:
isFulfilled
in classCondition
-
singleTargetOnly
protected boolean singleTargetOnly()Description copied from class:Condition
Expects a single target only. Used in conjunction withCondition.targetConditionArgOverridesSuppliedTarget()
.- Overrides:
singleTargetOnly
in classCondition
- Returns:
-
multipleTargetsEvaluatedAsOr
protected boolean multipleTargetsEvaluatedAsOr()Description copied from class:Condition
WhenCondition.targetConditionArgOverridesSuppliedTarget()
istrue
, the result of the condition on each of the resolved targets isor
-ed if this istrue
.Should not be
true
whenCondition.multipleTargetsEvaluatedAsAnd()
is alsotrue
.- Overrides:
multipleTargetsEvaluatedAsOr
in classCondition
- Returns:
-
multipleTargetsEvaluatedAsAnd
protected boolean multipleTargetsEvaluatedAsAnd()Description copied from class:Condition
WhenCondition.targetConditionArgOverridesSuppliedTarget()
istrue
, the result of the condition on each of the resolved targets isand
-ed if this istrue
.Should not be
true
whenCondition.multipleTargetsEvaluatedAsOr()
is alsotrue
.- Overrides:
multipleTargetsEvaluatedAsAnd
in classCondition
- Returns:
-
usesFilter
protected boolean usesFilter()Description copied from class:Condition
- Overrides:
usesFilter
in classCondition
- Returns:
-
requiresAtLeastOneTarget
protected boolean requiresAtLeastOneTarget()Description copied from class:Condition
Whentrue
andCondition.multipleTargetsEvaluatedAsAnd()
, there must be at least one target in the resolved targets.- Overrides:
requiresAtLeastOneTarget
in classCondition
- Returns:
-