|
Gridarta Editor
|
Common base class for spells and spell lists. More...
Inheritance diagram for net.sf.gridarta.model.spells.Spells< S extends Spell >:
Collaboration diagram for net.sf.gridarta.model.spells.Spells< S extends Spell >:Public Member Functions | |
| void | add (@NotNull final S spell) |
| Add a spell. More... | |
| S | getSpell (final int index) |
| Return one spell object by index. More... | |
| Iterator< S > | iterator () |
| Return all known spell objects. More... | |
| int | size () |
| Return the number of existing spell objects. More... | |
| void | sort () |
| Sort the added spells after loading is finished. More... | |
Private Attributes | |
| final List< S > | spells = new ArrayList<>() |
| All defined spells. More... | |
Static Private Attributes | |
| static final Comparator< Spell > | SPELL_COMPARATOR |
| A comparator to sort spells by name. More... | |
Common base class for spells and spell lists.
Definition at line 33 of file Spells.java.
| void net.sf.gridarta.model.spells.Spells< S extends Spell >.add | ( | @NotNull final S | spell | ) |
| S net.sf.gridarta.model.spells.Spells< S extends Spell >.getSpell | ( | final int | index | ) |
Return one spell object by index.
| index | the spell index |
Definition at line 91 of file Spells.java.
Referenced by net.sf.gridarta.gui.dialog.gameobjectattributes.DialogAttributeSpell< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getObjectText(), net.sf.gridarta.gui.dialog.gameobjectattributes.DialogAttributeZSpell< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getObjectText(), and net.sf.gridarta.gui.dialog.gameobjectattributes.DialogAttributeInvSpell< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getObjectText().
Here is the caller graph for this function:| Iterator<S> net.sf.gridarta.model.spells.Spells< S extends Spell >.iterator | ( | ) |
| int net.sf.gridarta.model.spells.Spells< S extends Spell >.size | ( | ) |
Return the number of existing spell objects.
Definition at line 64 of file Spells.java.
Here is the caller graph for this function:| void net.sf.gridarta.model.spells.Spells< S extends Spell >.sort | ( | ) |
Sort the added spells after loading is finished.
Definition at line 56 of file Spells.java.
Referenced by net.sf.gridarta.project.ProjectModel<?, ?, ?>.loadGameObjectMatchers().
Here is the caller graph for this function:
|
staticprivate |
A comparator to sort spells by name.
Definition at line 44 of file Spells.java.
|
private |
All defined spells.
Definition at line 39 of file Spells.java.