Class AttributeValueProvider
java.lang.Object
net.demilich.metastone.game.spells.desc.valueprovider.ValueProvider
net.demilich.metastone.game.spells.desc.valueprovider.AttributeValueProvider
- All Implemented Interfaces:
Serializable
,HasDesc<ValueProviderDesc>
Reduces the sum of all values of attribute
ValueProviderArg.ATTRIBUTE
on target entities for ValueProviderArg.TARGET
. Correctly accounts for Attribute.ATTACK
and Attribute.HP
when retrieved
from a Card
or an Actor
to include buffs and bonuses.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ValueProviderDesc
static ValueProviderDesc
create
(Attribute attribute, EntityReference target) protected int
provideValue
(GameContext context, Player player, Entity target, Entity host) static int
provideValueForAttribute
(GameContext context, Attribute attribute, Entity entity) Methods inherited from class net.demilich.metastone.game.spells.desc.valueprovider.ValueProvider
getDesc, getValue, setDesc
-
Constructor Details
-
AttributeValueProvider
-
-
Method Details
-
create
-
create
-
provideValue
- Specified by:
provideValue
in classValueProvider
-
provideValueForAttribute
-