Class EntityEqualsCondition
java.lang.Object
net.demilich.metastone.game.spells.desc.condition.Condition
net.demilich.metastone.game.spells.desc.condition.EntityEqualityCondition
net.demilich.metastone.game.spells.desc.condition.EntityEqualsCondition
- All Implemented Interfaces:
Serializable
,HasDesc<ConditionDesc>
Evaluates to
true
when the target
or ConditionArg.TARGET
and ConditionArg.SECONDARY_TARGET
are the same.
Does not support multiple targets on either side.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConditionDesc
create
(EntityReference lhs, EntityReference rhs) rhs
(GameContext context, Player player, ConditionDesc desc, Entity source, Entity target) protected boolean
Expects a single target only.Methods inherited from class net.demilich.metastone.game.spells.desc.condition.EntityEqualityCondition
compare, isFulfilled, lhs
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
-
EntityEqualsCondition
-
-
Method Details
-
create
-
rhs
protected List<Entity> rhs(GameContext context, Player player, ConditionDesc desc, Entity source, Entity target) - Overrides:
rhs
in classEntityEqualityCondition
-
singleTargetOnly
protected boolean singleTargetOnly()Description copied from class:Condition
Expects a single target only. Used in conjunction withCondition.targetConditionArgOverridesSuppliedTarget()
.- Overrides:
singleTargetOnly
in classCondition
- Returns:
-