Package net.sf.gridarta.model.spells
Class ArchetypeSetSpellLoader<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.model.spells.ArchetypeSetSpellLoader<G,A,R>
-
public class ArchetypeSetSpellLoader<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.ObjectExtract spell definitions from an archetype set.
-
-
Constructor Summary
Constructors Constructor Description ArchetypeSetSpellLoader(@NotNull GameObjectFactory<G,A,R> gameObjectFactory)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidload(@NotNull ArchetypeSet<G,A,R> archetypeSet, int typeNo, @NotNull Spells<GameObjectSpell<G,A,R>> spells)Find all game object that describe spells and add correspondingSpellobjects.
-
-
-
Constructor Detail
-
ArchetypeSetSpellLoader
public ArchetypeSetSpellLoader(@NotNull @NotNull GameObjectFactory<G,A,R> gameObjectFactory)Creates a new instance.- Parameters:
gameObjectFactory- the game object factory for creating game objects
-
-
Method Detail
-
load
public void load(@NotNull @NotNull ArchetypeSet<G,A,R> archetypeSet, int typeNo, @NotNull @NotNull Spells<GameObjectSpell<G,A,R>> spells)Find all game object that describe spells and add correspondingSpellobjects.- Parameters:
archetypeSet- the archetype set to scantypeNo- the type number to search forspells- theSpellsinstance to add the spells to
-
-