20 package net.sf.gridarta.model.spells;
27 import org.apache.log4j.Category;
28 import org.apache.log4j.Logger;
29 import org.jetbrains.annotations.NotNull;
67 for (
final R archetype : archetypeSet.getArchetypes()) {
68 if (archetype.getTypeNo() == typeNo) {
74 if (LOG.isInfoEnabled()) {
75 LOG.info(
"Found " + numSpells +
" defined spells from archetypes.");
void load(@NotNull final ArchetypeSet< G, A, R > archetypeSet, final int typeNo, @NotNull final Spells< GameObjectSpell< G, A, R >> spells)
Find all game object that describe spells and add corresponding Spell objects.
Extract spell definitions from an archetype set.
Base package of all Gridarta classes.
Common base class for spells and spell lists.
Reflects a game object (object on a map).
Abstract factory for creating GameObject instances.
GameObjects are the objects based on Archetypes found on maps.
static final Category LOG
The Logger for printing log messages.
Describes a numbered in-game spell.
Interface that captures similarities between different ArchetypeSet implementations.
final GameObjectFactory< G, A, R > gameObjectFactory
The GameObjectFactory for creating GameObjects.
ArchetypeSetSpellLoader(@NotNull final GameObjectFactory< G, A, R > gameObjectFactory)
Creates a new instance.
Interface for MapArchObjects.