Class CardCostModifierDesc
java.lang.Object
java.util.AbstractMap<K,V>
java.util.EnumMap<K,V>
net.demilich.metastone.game.cards.BaseMap<T,Object>
net.demilich.metastone.game.cards.desc.Desc<CardCostModifierArg,CardCostModifier>
net.demilich.metastone.game.spells.desc.manamodifier.CardCostModifierDesc
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<CardCostModifierArg,
,Object> HasDesc<Desc<CardCostModifierArg,
,CardCostModifier>> HasEntrySet<CardCostModifierArg,
,Object> AbstractEnchantmentDesc<CardCostModifier>
public final class CardCostModifierDesc
extends Desc<CardCostModifierArg,CardCostModifier>
implements AbstractEnchantmentDesc<CardCostModifier>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> Nested classes/interfaces inherited from interface net.demilich.metastone.game.cards.desc.HasEntrySet
HasEntrySet.BfsEnum, HasEntrySet.BfsNode<T extends Enum,
V> -
Constructor Summary
ConstructorsConstructorDescriptionCardCostModifierDesc
(Class<? extends CardCostModifier> clazz) CardCostModifierDesc
(Map<CardCostModifierArg, Object> arguments) -
Method Summary
Modifier and TypeMethodDescriptionaddArg
(CardCostModifierArg cardCostModififerArg, Object value) clone()
removeArg
(CardCostModifierArg cardCostModififerArg) tryCreate
(GameContext context, Player player, Entity effectSource, Card enchantmentSource, Entity host, boolean force) Methods inherited from class net.demilich.metastone.game.cards.desc.Desc
copyTo, create, equals, getBool, getDesc, getDescClass, getInt, getString, getValue, hashCode, put, setDesc, toString
Methods inherited from class java.util.EnumMap
clear, containsKey, containsValue, entrySet, get, keySet, putAll, remove, size, values
Methods inherited from class java.util.AbstractMap
isEmpty
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.demilich.metastone.game.cards.desc.HasEntrySet
bfs, entrySet
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
CardCostModifierDesc
public CardCostModifierDesc() -
CardCostModifierDesc
-
CardCostModifierDesc
-
-
Method Details
-
getDescImplClass
- Specified by:
getDescImplClass
in classDesc<CardCostModifierArg,
CardCostModifier>
-
getClassArg
- Specified by:
getClassArg
in classDesc<CardCostModifierArg,
CardCostModifier>
-
addArg
-
removeArg
-
clone
- Specified by:
clone
in classDesc<CardCostModifierArg,
CardCostModifier>
-
tryCreate
public Optional<CardCostModifier> tryCreate(GameContext context, Player player, Entity effectSource, Card enchantmentSource, Entity host, boolean force) - Specified by:
tryCreate
in interfaceAbstractEnchantmentDesc<CardCostModifier>
-