Class OwnedByPlayerCondition
java.lang.Object
net.demilich.metastone.game.spells.desc.condition.Condition
net.demilich.metastone.game.spells.desc.condition.OwnedByPlayerCondition
- All Implemented Interfaces:
Serializable,HasDesc<ConditionDesc>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisFulfilled(GameContext context, Player player, ConditionDesc desc, Entity source, Entity target) protected booleanisFulfilledForTarget(GameContext context, Player player, Entity source, Entity target, TargetPlayer targetPlayer) protected booleanExpects a single target only.Methods inherited from class net.demilich.metastone.game.spells.desc.condition.Condition
equals, getDesc, hashCode, isFulfilled, multipleTargetsEvaluatedAsAnd, multipleTargetsEvaluatedAsOr, requiresAtLeastOneTarget, setDesc, targetConditionArgOverridesSuppliedTarget, usesFilter
-
Constructor Details
-
OwnedByPlayerCondition
-
-
Method Details
-
isFulfilled
protected boolean isFulfilled(GameContext context, Player player, ConditionDesc desc, Entity source, Entity target) - Specified by:
isFulfilledin classCondition
-
isFulfilledForTarget
protected boolean isFulfilledForTarget(GameContext context, Player player, Entity source, Entity target, TargetPlayer targetPlayer) - Overrides:
isFulfilledForTargetin classCondition
-
singleTargetOnly
protected boolean singleTargetOnly()Description copied from class:ConditionExpects a single target only. Used in conjunction withCondition.targetConditionArgOverridesSuppliedTarget().- Overrides:
singleTargetOnlyin classCondition- Returns:
-