Ejemplo n.º 1
0
 public Teacher(Gender Gender, Subject[] Subjects, int Salary)
 {
     if (Gender == Gender.Male)
     {
         this.FirstName = FirstNamesMale[Random.Next(FirstNamesMale.Count())];
     }
     else
     {
         this.FirstName = FirstNamesFemale[Random.Next(FirstNamesFemale.Count())];
     }
     this.LastName  = LastNames[Random.Next(LastNames.Count())];
     this.Gender    = Gender;
     this.Subjects  = Subjects;
     this.Salary    = Salary;
     this.Happiness = Random.Next(1000);
     this.FunFactor = Random.Next(-5, 6);
 }
Ejemplo n.º 2
0
 public Pupil(Gender Gender, int Class)
 {
     if (Gender == Gender.Male)
     {
         this.FirstName = FirstNamesMale[Random.Next(FirstNamesMale.Count())];
     }
     else
     {
         this.FirstName = FirstNamesFemale[Random.Next(FirstNamesFemale.Count())];
     }
     this.LastName     = LastNames[Random.Next(LastNames.Count())];
     this.Gender       = Gender;
     this.Happiness    = Random.Next(1001);
     this.Class        = Class;
     this.Intelligence = Random.Next(11);
     this.Motivation   = Random.Next(11);
 }