|
|
|
@ -12,9 +12,9 @@ namespace Model
|
|
|
|
|
{
|
|
|
|
|
public string Nom { get; }
|
|
|
|
|
public string NomScientifique { get; }
|
|
|
|
|
//public int EsperanceVie { get; }
|
|
|
|
|
//public float PoidsMoyen { get; }
|
|
|
|
|
//public float TailleMoyenne { get; }
|
|
|
|
|
public string EsperanceVie { get; }
|
|
|
|
|
public string PoidsMoyen { get; }
|
|
|
|
|
public string TailleMoyenne { get; }
|
|
|
|
|
//public string Comportement { get; }
|
|
|
|
|
//public string Sante { get; }
|
|
|
|
|
//public string Education { get; }
|
|
|
|
@ -23,16 +23,22 @@ namespace Model
|
|
|
|
|
//public string Conseil { get; }
|
|
|
|
|
//public HashSet<Race> ListeRaces { get; } = new HashSet<Race>();
|
|
|
|
|
|
|
|
|
|
public Espece(string nom = "Inconnu", string nomScientifique = "Inconnu")
|
|
|
|
|
public Espece(string nom = "Inconnu", string nomScientifique = "Inconnu", string esperanceVie = "Inconnue", string poidsMoyen = "Inconnu", string tailleMoyenne = "Inconnue")
|
|
|
|
|
{
|
|
|
|
|
Nom = nom;
|
|
|
|
|
NomScientifique = nomScientifique;
|
|
|
|
|
EsperanceVie = esperanceVie;
|
|
|
|
|
PoidsMoyen = poidsMoyen;
|
|
|
|
|
TailleMoyenne = tailleMoyenne;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void AfficherEspece()
|
|
|
|
|
{
|
|
|
|
|
Console.WriteLine("Nom : " + Nom);
|
|
|
|
|
Console.WriteLine("Nom scientifique : " + NomScientifique);
|
|
|
|
|
Console.WriteLine("\n" + Nom);
|
|
|
|
|
Console.WriteLine("\tNom scientifique : " + NomScientifique);
|
|
|
|
|
Console.WriteLine("\tEspérance de vie : " + EsperanceVie);
|
|
|
|
|
Console.WriteLine("\tPoids moyen : " + PoidsMoyen);
|
|
|
|
|
Console.WriteLine("\tTaille moyenne : " + TailleMoyenne);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|