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 ConditionDesccreate(EntityReference lhs, EntityReference rhs) rhs(GameContext context, Player player, ConditionDesc desc, Entity source, Entity target) protected booleanExpects a single target only.Methods inherited from class net.demilich.metastone.game.spells.desc.condition.EntityEqualityCondition
compare, isFulfilled, lhsMethods 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:
rhsin classEntityEqualityCondition
-
singleTargetOnly
protected boolean singleTargetOnly()Description copied from class:ConditionExpects a single target only. Used in conjunction withCondition.targetConditionArgOverridesSuppliedTarget().- Overrides:
singleTargetOnlyin classCondition- Returns:
-