Example #1
0
 public bool DeleteCompetence(Technique tech)
 {
     if (Inventary[0].Nom == tech.Nom)
     {
         Inventary.Remove(Inventary[0]);
     }
     if (Inventary[1].Nom == tech.Nom)
     {
         Inventary.Remove(Inventary[1]);
     }
     if (Inventary[2].Nom == tech.Nom)
     {
         Inventary.Remove(Inventary[2]);
     }
     if (Inventary[3].Nom == tech.Nom)
     {
         Inventary.Remove(Inventary[3]);
     }
     if (Inventary[4].Nom == tech.Nom)
     {
         Inventary.Remove(Inventary[4]);
     }
     if (Inventary[5].Nom == tech.Nom)
     {
         Inventary.Remove(Inventary[5]);
     }
     return(true);
 }
Example #2
0
 public bool AddCompetence(Technique tech)
 {
     if (Inventary.Count >= 6)
     {
         return(false);
     }
     else
     {
         Inventary.Add(tech);
         return(true);
     }
 }