Class CardAuraCardFilter
java.lang.Object
net.demilich.metastone.game.spells.desc.filter.EntityFilter
net.demilich.metastone.game.spells.desc.filter.SpecificCardFilter
net.demilich.metastone.game.spells.desc.filter.CardAuraCardFilter
- All Implemented Interfaces:
Serializable
,HasDesc<EntityFilterDesc>
A filter that matches an entity if the base card ID is matched by the
EntityFilterArg.CARD
property.
CardAura
auras will change the card ID of a card, making it difficult
to apply a card aura to a specific card; as soon as the card changes, the aura no longer applies to it.
Use this filter in the "filter"
property of a card aura if you are implementing text like, "All Lunstones are
Fireballs instead."
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
test
(GameContext context, Player player, Entity entity, Entity host) The subclasses of this class implement this method to actually perform the logic of the filtering.Methods inherited from class net.demilich.metastone.game.spells.desc.filter.SpecificCardFilter
create
Methods inherited from class net.demilich.metastone.game.spells.desc.filter.EntityFilter
equals, getArg, getDesc, getTargetedEntities, hasArg, matcher, matches, setDesc
-
Constructor Details
-
CardAuraCardFilter
-
-
Method Details
-
test
Description copied from class:EntityFilter
The subclasses of this class implement this method to actually perform the logic of the filtering. Observe that results from filtering other entities are not available here; this function is stateless in the sense that an earlier acceptance or rejection of an entity cannot influence the acceptance or rejection of a current entity.- Overrides:
test
in classSpecificCardFilter
- Returns:
-