kezz101/HarryPotterSpells — pull request #43 by korikisulda (2012-08-11 19:49:03+00:00)
Title: Adds possibility of using alternate names for spells

Added getName() to allow classes to use spell names other than the class name(although if there is no such supplied name, it will default to the class name). Spellmanager recognises these annotation names(although class names can still be used with spellManager even when there is an alternate name for a spell, so alternate spell names must not have the same name as another spell class, otherwise there is the potential for the wrong spell to be used). Also in the annotation is the description() variable, which at the moment serves no purpose and is set to "A mysterious spell" if none is supplied, although atm if there's no spell annotation associated with the given spell class, getDescription() it will return the spell name instead of the default message, which is something I'll probably fix when I can think of something to use it for.... probably a dynamic spell list