Exemplo n.º 1
0
 string getSubClass(SubClass c)
 {
     //Because a class/object can be null but an enum/type cannot be null,
     //there needs to be a check here but not in other places.
     if (c != null)
     {
         return c.GetDescription();
     }
     else
     {
         return String.Empty;
     }
 }
Exemplo n.º 2
0
 private void checkSpellCasting(Classes c, SubClass s)
 {
     switch (c)
     {
         case Classes.Fighter:
             if(s.GetDescription() == "Eldritch Knight")
             {
                 tempIsCaster = true;
             }
             break;
         case Classes.Monk:
             if(s.GetDescription() == "Way of the Four Elements")
             {
                 tempIsCaster = true;
             }
             break;
         case Classes.Rogue:
             if(s.GetDescription() == "Arcane Trickster")
             {
                 tempIsCaster = true;
             }
             break;
         default:
             break;
     }
     tab_CharSpells.Enabled = tempIsCaster;
 }