Gridarta Editor
net.sf.gridarta.model.spells.ArchetypeSetSpellLoader< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R > Class Template Reference

Extract spell definitions from an archetype set. More...

+ Collaboration diagram for net.sf.gridarta.model.spells.ArchetypeSetSpellLoader< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:

Public Member Functions

 ArchetypeSetSpellLoader (@NotNull final GameObjectFactory< G, A, R > gameObjectFactory)
 Creates a new instance. More...
 
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 {} objects. More...
 

Private Attributes

final GameObjectFactory< G, A, R > gameObjectFactory
 The GameObjectFactory for creating GameObjects. More...
 

Static Private Attributes

static final Category LOG = Logger.getLogger(ArchetypeSetSpellLoader.class)
 The Logger for printing log messages. More...
 

Detailed Description

Extract spell definitions from an archetype set.

Author
Andreas Kirschbaum

Definition at line 35 of file ArchetypeSetSpellLoader.java.

Constructor & Destructor Documentation

◆ ArchetypeSetSpellLoader()

net.sf.gridarta.model.spells.ArchetypeSetSpellLoader< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.ArchetypeSetSpellLoader ( @NotNull final GameObjectFactory< G, A, R >  gameObjectFactory)

Creates a new instance.

Parameters
gameObjectFactorythe game object factory for creating game objects

Definition at line 54 of file ArchetypeSetSpellLoader.java.

References net.sf.gridarta.model.spells.ArchetypeSetSpellLoader< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.gameObjectFactory.

Member Function Documentation

◆ load()

void net.sf.gridarta.model.spells.ArchetypeSetSpellLoader< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.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 {} objects.

Parameters
archetypeSetthe archetype set to scan
typeNothe type number to search for
spellsthe
Spells
instance to add the spells to

Definition at line 65 of file ArchetypeSetSpellLoader.java.

References net.sf.gridarta.model.spells.ArchetypeSetSpellLoader< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.gameObjectFactory, and net.sf.gridarta.model.spells.ArchetypeSetSpellLoader< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.LOG.

Referenced by net.sf.gridarta.project.ProjectModel<?, ?, ?>.loadArchetypeSpells().

+ Here is the caller graph for this function:

Member Data Documentation

◆ gameObjectFactory

◆ LOG

final Category net.sf.gridarta.model.spells.ArchetypeSetSpellLoader< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.LOG = Logger.getLogger(ArchetypeSetSpellLoader.class)
staticprivate

The documentation for this class was generated from the following file: