Beispiel #1
0
 public void addPartContester(Contester contester)
 {
     if (!Contester.Equals(contester))
     {
         Contester = contester;
     }
 }
Beispiel #2
0
        public static Contester createPart(Pokemon Pokemon, int ContesterID, string Specialisation)
        {
            if (Pokemon == null)
            {
                throw new Exception("Pokemon doesn't exists");
            }

            Contester contPart = new Contester(Pokemon, ContesterID, Specialisation);

            Pokemon.addPartContester(contPart);

            return(contPart);
        }