示例#1
0
 /// <summary>
 /// Find all the spells of a given spell type.
 /// </summary>
 /// <param name="spellType"></param>
 /// <returns></returns>
 public List <Spell> FindSpells(Constants.SpellType spellType)
 {
     return(this.FindAll(delegate(Spell s)
     {
         return s.Type == spellType;
     }));
 }
示例#2
0
 /// <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;
 }