|
|
|
@ -15,15 +15,16 @@ namespace Model
|
|
|
|
|
public string EsperanceVie { get; }
|
|
|
|
|
public string PoidsMoyen { get; }
|
|
|
|
|
public string TailleMoyenne { get; }
|
|
|
|
|
//public string Comportement { get; }
|
|
|
|
|
//public string Sante { get; }
|
|
|
|
|
//public string Education { get; }
|
|
|
|
|
//public string Entretien { get; }
|
|
|
|
|
//public string Cout { get; }
|
|
|
|
|
//public string Conseil { get; }
|
|
|
|
|
public HashSet<Race>? ListeRaces { get; } = new HashSet<Race>();
|
|
|
|
|
public string Comportement { get; }
|
|
|
|
|
public string Sante { get; }
|
|
|
|
|
public string Education { get; }
|
|
|
|
|
public string Entretien { get; }
|
|
|
|
|
public string Cout { get; }
|
|
|
|
|
public string Conseil { get; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Espece(string nom = "Inconnu", string nomScientifique = "Inconnu", string esperanceVie = "Inconnue", string poidsMoyen = "Inconnu", string tailleMoyenne = "Inconnue", HashSet<Race>? races = null)
|
|
|
|
|
public Espece(string nom = "Inconnu", string nomScientifique = "Inconnu", string esperanceVie = "Inconnue", string poidsMoyen = "Inconnu", string tailleMoyenne = "Inconnue", HashSet<Race>? races = null, string comportement = "Inconnu", string sante = "Inconnue", string education = "Inconnue", string entretien = "Inconnu", string cout = "Inconnu", string conseil = "Aucun conseil")
|
|
|
|
|
{
|
|
|
|
|
Nom = nom;
|
|
|
|
|
NomScientifique = nomScientifique;
|
|
|
|
@ -31,6 +32,12 @@ namespace Model
|
|
|
|
|
PoidsMoyen = poidsMoyen;
|
|
|
|
|
TailleMoyenne = tailleMoyenne;
|
|
|
|
|
ListeRaces = races;
|
|
|
|
|
Comportement = comportement;
|
|
|
|
|
Sante = sante;
|
|
|
|
|
Education = education;
|
|
|
|
|
Entretien = entretien;
|
|
|
|
|
Cout = cout;
|
|
|
|
|
Conseil = conseil;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal void AffficherListeRace()
|
|
|
|
@ -54,6 +61,12 @@ namespace Model
|
|
|
|
|
Console.WriteLine("\tEspérance de vie : " + EsperanceVie);
|
|
|
|
|
Console.WriteLine("\tPoids moyen : " + PoidsMoyen);
|
|
|
|
|
Console.WriteLine("\tTaille moyenne : " + TailleMoyenne);
|
|
|
|
|
Console.WriteLine("\tComportement : " + Comportement);
|
|
|
|
|
Console.WriteLine("\tSanté : " + Sante);
|
|
|
|
|
Console.WriteLine("\tEducation : " + Education);
|
|
|
|
|
Console.WriteLine("\tEntretien : " + Entretien);
|
|
|
|
|
Console.WriteLine("\tCout : " + Cout);
|
|
|
|
|
Console.WriteLine("\tConseil : " + Conseil);
|
|
|
|
|
|
|
|
|
|
AffficherListeRace();
|
|
|
|
|
|
|
|
|
@ -107,7 +120,7 @@ namespace Model
|
|
|
|
|
{
|
|
|
|
|
race.AfficherRace();
|
|
|
|
|
}
|
|
|
|
|
else Console.WriteLine("\tChoix incorrect");
|
|
|
|
|
else Console.WriteLine("\tChoix incorrect\n");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|