using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Model { public class Equipage : ObjetOhara { public string NomRomanise { get; set; } public string Region { get; set; } public int PremierChap { get; set; } public int PremierEp { get; set; } public bool Statut { get; set; } public string Description { get; set; } public Personnage? Capitaine { get; set; } public List Membre { get; set; } = new List(); public List Allie { get; set; } = new List(); public Equipage(string nom, string nomRomanise, string region, int premierChap, int premierEp, bool statut, string description,string image = "baseimage.png") : base(nom,image) { NomRomanise = nomRomanise; Region = region; if(premierEp < 0) { PremierEp = 0; } else { PremierEp = premierEp; } if(premierChap < 0) { premierChap = 0; } else { PremierChap = premierChap; } Statut = statut; Description = description; } } }