Class EvenCostFilter
java.lang.Object
net.demilich.metastone.game.spells.desc.filter.EntityFilter
net.demilich.metastone.game.spells.desc.filter.ManaCostFilter
net.demilich.metastone.game.spells.desc.filter.EvenCostFilter
- All Implemented Interfaces:
Serializable
,HasDesc<EntityFilterDesc>
Only returns entities that have an even base cost.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
getManaCost
(GameContext context, Player player, Entity entity) protected 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.ManaCostFilter
create
Methods inherited from class net.demilich.metastone.game.spells.desc.filter.EntityFilter
equals, getArg, getDesc, getTargetedEntities, hasArg, matcher, matches, setDesc
-
Constructor Details
-
EvenCostFilter
-
-
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 classManaCostFilter
- Returns:
-
getManaCost
- Overrides:
getManaCost
in classManaCostFilter
-