public class ArchetypeSetSpellLoader<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.lang.Object
| Constructor and Description |
|---|
ArchetypeSetSpellLoader(@NotNull GameObjectFactory<G,A,R> gameObjectFactory)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
load(@NotNull ArchetypeSet<G,A,R> archetypeSet,
int typeNo,
@NotNull Spells<GameObjectSpell<G,A,R>> spells)
Find all game object that describe spells and add corresponding
Spell objects. |
public ArchetypeSetSpellLoader(@NotNull
@NotNull GameObjectFactory<G,A,R> gameObjectFactory)
gameObjectFactory - the game object factory for creating game
objectspublic void load(@NotNull
@NotNull ArchetypeSet<G,A,R> archetypeSet,
int typeNo,
@NotNull
@NotNull Spells<GameObjectSpell<G,A,R>> spells)
Spell objects.archetypeSet - the archetype set to scantypeNo - the type number to search forspells - the Spells instance to add the spells to