public class SpellBinder
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
SpellBinder() |
| Modifier and Type | Method and Description |
|---|---|
SpellTemplate |
accessSpell(java.lang.String name) |
java.util.ArrayList<SpellTemplate> |
accessSpells() |
boolean |
addSpell(java.lang.String spellName) |
boolean |
addSpell(java.lang.String name,
int level) |
boolean |
hasSpell(java.lang.String name) |
void |
load(java.io.File file)
Loads the spells file.
|
public boolean addSpell(java.lang.String name,
int level)
public void load(java.io.File file)
path - public SpellTemplate accessSpell(java.lang.String name) throws SpellNotInstalledException
SpellNotInstalledExceptionpublic boolean addSpell(java.lang.String spellName)
public boolean hasSpell(java.lang.String name)
public java.util.ArrayList<SpellTemplate> accessSpells()