/// <summary> /// Find all the spells in the given category. /// </summary> /// <param name="spellCategory"></param> /// <returns></returns> public List <Spell> FindSpells(Constants.SpellCategory spellCategory) { return(this.FindAll(delegate(Spell s) { return s.Category == spellCategory; })); }
/// <summary> /// Default spell constructor. /// </summary> /// <param name="name"></param> /// <param name="words"></param> /// <param name="mp"></param> /// <param name="category"></param> /// <param name="type"></param> public Spell(string name, string words, uint mp, Constants.SpellCategory category, Constants.SpellType type) { Name = name; Words = words; ManaPoints = mp; Category = category; Type = type; }