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 boolean
isFulfilled
(GameContext context, Player player, ConditionDesc desc, Entity source, Entity target) protected boolean
isFulfilledForTarget
(GameContext context, Player player, Entity source, Entity target, TargetPlayer targetPlayer) protected boolean
Expects 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:
isFulfilled
in classCondition
-
isFulfilledForTarget
protected boolean isFulfilledForTarget(GameContext context, Player player, Entity source, Entity target, TargetPlayer targetPlayer) - Overrides:
isFulfilledForTarget
in classCondition
-
singleTargetOnly
protected boolean singleTargetOnly()Description copied from class:Condition
Expects a single target only. Used in conjunction withCondition.targetConditionArgOverridesSuppliedTarget()
.- Overrides:
singleTargetOnly
in classCondition
- Returns:
-