Class LambdaSpellDesc
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<SpellArg,Spell>
net.demilich.metastone.game.spells.desc.SpellDesc
net.demilich.metastone.game.spells.desc.LambdaSpellDesc
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<SpellArg,
,Object> HasDesc<Desc<SpellArg,
,Spell>> HasEntrySet<SpellArg,
,Object> AbstractEnchantmentDesc<Aftermath>
Represents a
SpellDesc
created from a LambdaSpellDesc.LambdaSpell
lambda function.
Be careful with variables brought in from outside the lambda. They will not be cloned when the GameContext
is
cloned.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Signature of a spell'sSpell.cast(GameContext, Player, SpellDesc, Entity, List)
method.static class
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
ConstructorDescriptionLambdaSpellDesc
(LambdaSpellDesc.AbstractLambdaSpell lambdaSpell) Creates an instance of this class with the specified lambda. -
Method Summary
Methods inherited from class net.demilich.metastone.game.spells.desc.SpellDesc
addArg, equals, getAttribute, getCardFilter, getCards, getCardSource, getClassArg, getDescImplClass, getEntityFilter, getFilteredCards, getInt, getSecondaryTarget, getSpell, getTarget, getTargetPlayer, hashCode, hasPredefinedTarget, join, removeArg, setTarget, spellStream, spellStream, spellStream, spellStream, subSpells, subSpells, toString, tryCreate
Methods inherited from class net.demilich.metastone.game.cards.desc.Desc
copyTo, getBool, getDesc, getDescClass, getInt, getString, getValue, put, setDesc
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
-
LambdaSpellDesc
Creates an instance of this class with the specified lambda.- Parameters:
lambdaSpell
-
-
-
Method Details