Class EventTargetMatchesReferenceCondition
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.EventTargetMatchesReferenceCondition
- All Implemented Interfaces:
Serializable,HasDesc<ConditionDesc>
Evaluates to
true when the ConditionArg.TARGET from the perspective of the EntityReference.TRIGGER_HOST and the EntityReference.EVENT_TARGET are the same.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlhs(GameContext context, Player player, ConditionDesc desc, Entity source, Entity target) rhs(GameContext context, Player player, ConditionDesc desc, Entity source, Entity target) protected booleanWhentrue,ConditionArg.TARGETis evaluated instead of being interpreted by the subclass, replacingtargetif it is specified.Methods inherited from class net.demilich.metastone.game.spells.desc.condition.EntityEqualityCondition
compare, isFulfilledMethods inherited from class net.demilich.metastone.game.spells.desc.condition.Condition
equals, getDesc, hashCode, isFulfilled, isFulfilledForTarget, multipleTargetsEvaluatedAsAnd, multipleTargetsEvaluatedAsOr, requiresAtLeastOneTarget, setDesc, singleTargetOnly, usesFilter
-
Constructor Details
-
EventTargetMatchesReferenceCondition
-
-
Method Details
-
lhs
protected List<Entity> lhs(GameContext context, Player player, ConditionDesc desc, Entity source, Entity target) - Overrides:
lhsin classEntityEqualityCondition
-
rhs
protected List<Entity> rhs(GameContext context, Player player, ConditionDesc desc, Entity source, Entity target) - Overrides:
rhsin classEntityEqualityCondition
-
targetConditionArgOverridesSuppliedTarget
protected boolean targetConditionArgOverridesSuppliedTarget()Description copied from class:ConditionWhentrue,ConditionArg.TARGETis evaluated instead of being interpreted by the subclass, replacingtargetif it is specified.When
false, onlytargetis passed.- Overrides:
targetConditionArgOverridesSuppliedTargetin classCondition- Returns:
-