Class HasAttackedCondition
java.lang.Object
net.demilich.metastone.game.spells.desc.condition.Condition
net.demilich.metastone.game.spells.desc.condition.HasAttackedCondition
- All Implemented Interfaces:
Serializable,HasDesc<ConditionDesc>
true if any of the ConditionArg.TARGET or target has attacked this turn according to Attribute.ATTACKS_THIS_TURN.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisFulfilled(GameContext context, Player player, ConditionDesc desc, Entity source, Entity target) protected booleanWhenCondition.targetConditionArgOverridesSuppliedTarget()istrue, the result of the condition on each of the resolved targets isand-ed if this istrue.protected booleanWhenCondition.targetConditionArgOverridesSuppliedTarget()istrue, the result of the condition on each of the resolved targets isor-ed if this istrue.Methods inherited from class net.demilich.metastone.game.spells.desc.condition.Condition
equals, getDesc, hashCode, isFulfilled, isFulfilledForTarget, requiresAtLeastOneTarget, setDesc, singleTargetOnly, targetConditionArgOverridesSuppliedTarget, usesFilter
-
Constructor Details
-
HasAttackedCondition
-
-
Method Details
-
isFulfilled
protected boolean isFulfilled(GameContext context, Player player, ConditionDesc desc, Entity source, Entity target) - Specified by:
isFulfilledin classCondition
-
multipleTargetsEvaluatedAsOr
protected boolean multipleTargetsEvaluatedAsOr()Description copied from class:ConditionWhenCondition.targetConditionArgOverridesSuppliedTarget()istrue, the result of the condition on each of the resolved targets isor-ed if this istrue.Should not be
truewhenCondition.multipleTargetsEvaluatedAsAnd()is alsotrue.- Overrides:
multipleTargetsEvaluatedAsOrin classCondition- Returns:
-
multipleTargetsEvaluatedAsAnd
protected boolean multipleTargetsEvaluatedAsAnd()Description copied from class:ConditionWhenCondition.targetConditionArgOverridesSuppliedTarget()istrue, the result of the condition on each of the resolved targets isand-ed if this istrue.Should not be
truewhenCondition.multipleTargetsEvaluatedAsOr()is alsotrue.- Overrides:
multipleTargetsEvaluatedAsAndin classCondition- Returns:
-