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 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.EntityEqualityCondition
compare, isFulfilled
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
-
EventTargetMatchesReferenceCondition
-
-
Method Details
-
lhs
protected List<Entity> lhs(GameContext context, Player player, ConditionDesc desc, Entity source, Entity target) - Overrides:
lhs
in classEntityEqualityCondition
-
rhs
protected List<Entity> rhs(GameContext context, Player player, ConditionDesc desc, Entity source, Entity target) - Overrides:
rhs
in classEntityEqualityCondition
-
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:
-