Class CardCountValueProvider
java.lang.Object
net.demilich.metastone.game.spells.desc.valueprovider.ValueProvider
net.demilich.metastone.game.spells.desc.valueprovider.EntityCountValueProvider
net.demilich.metastone.game.spells.desc.valueprovider.CardCountValueProvider
- All Implemented Interfaces:
Serializable
,HasDesc<ValueProviderDesc>
Returns the number of cards in the
ValueProviderArg.CARD_SOURCE
and ValueProviderArg.CARD_FILTER
when
specified, or Spellsource.ZonesMessage.Zones.HAND
when not specified.
If an ValueProviderArg.ATTRIBUTE
is specified, sums the values stored in the attribute or returns the count
of cards with that attribute.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected int
provideValue
(GameContext context, Player player, Entity target, Entity source) Methods inherited from class net.demilich.metastone.game.spells.desc.valueprovider.EntityCountValueProvider
matches
Methods inherited from class net.demilich.metastone.game.spells.desc.valueprovider.ValueProvider
getDesc, getValue, setDesc
-
Constructor Details
-
CardCountValueProvider
-
-
Method Details
-
provideValue
- Overrides:
provideValue
in classEntityCountValueProvider
-