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<T,V>
- Type Parameters:
T
- The enum representing the parameters/arguments/fields in the abstract base class.V
- The abstract base class of the concrete type.
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<T,
,Object> HasDesc<Desc<T,
,V>> HasEntrySet<T,
Object>
- Direct Known Subclasses:
AuraDesc
,CardCostModifierDesc
,CardSourceDesc
,ConditionDesc
,DynamicDescriptionDesc
,EntityFilterDesc
,EventTriggerDesc
,SpellDesc
,ValueProviderDesc
public abstract class Desc<T extends Enum<T>,V extends HasDesc<?>>
extends BaseMap<T,Object>
implements Serializable, Cloneable, HasDesc<Desc<T,V>>, HasEntrySet<T,Object>
-
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
-
Method Summary
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
-
Desc
-
Desc
-
Desc
-
-
Method Details
-
getDescClass
-
getDescImplClass
-
create
Per-instance memoized desc create instance.- Returns:
- An instance of the underlying implementation of this desc.
-
getClassArg
-
getBool
-
getInt
-
getString
-
getValue
public int getValue(T arg, GameContext context, Player player, Entity target, Entity host, int defaultValue) -
equals
-
hashCode
public int hashCode() -
put
-
clone
-
toString
-
copyTo
-
getDesc
-
setDesc
-