Class ConditionalValueProvider
java.lang.Object
net.demilich.metastone.game.spells.desc.valueprovider.ValueProvider
net.demilich.metastone.game.spells.desc.valueprovider.ConditionalValueProvider
- All Implemented Interfaces:
Serializable
,HasDesc<ValueProviderDesc>
When the
ValueProviderArg.CONDITION
evalutes to true
, return the value from ValueProviderArg.IF_TRUE
. Otherwise, return the value in ValueProviderArg.IF_FALSE
.- 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.ValueProvider
getDesc, getValue, setDesc
-
Constructor Details
-
ConditionalValueProvider
-
-
Method Details
-
provideValue
- Specified by:
provideValue
in classValueProvider
-