Esempio n. 1
0
File: Enclos.cs Progetto: MeuLee/Zoo
 public Enclos(int x, int y, Animal.TypeAnimal espece)
 {
     AnimauxPresents = new List <Animal>();
     X      = x;
     Y      = y;
     Espece = espece;
 }
Esempio n. 2
0
 /// <summary>
 /// Methode pour ajouter (acheter) un animal dans un enclos
 /// </summary>
 /// <param name="enclos"></param>
 /// <param name="prixAnimal"></param>
 /// <param name="tuile"></param>
 /// <param name="type"></param>
 private void AcheterAnimal(Enclos enclos, double prixAnimal, TuileZoo tuile, Animal.TypeAnimal type)
 {
     if (!tuile.ContientAnimal() && Heros.AAssezDArgent(prixAnimal))
     {
         enclos.Espece     = type;
         enclos.PrixEspece = prixAnimal;
         enclos.AnimauxPresents.Add(new Animal(tuile, type));
     }
 }
Esempio n. 3
0
 private void BtnMouton_Click(object sender, EventArgs e)
 {
     Selection = Animal.TypeAnimal.Mouton;
     this.Close();
 }
Esempio n. 4
0
 private void BtnLicorne_Click(object sender, EventArgs e)
 {
     Selection = Animal.TypeAnimal.Licorne;
     this.Close();
 }