public ChampConstructions()
 {
     Champ1 = null;
     Champ2 = null;
     Champ3 = null;
     Champ4 = null;
 }
        public List <Batiment> DetruireBatiments()
        {
            List <Batiment> temp = new List <Batiment>();

            if (Champ1 != null && Champ1.Defense <= 0)
            {
                temp.Add(Champ1);
                Champ1 = null;
            }
            if (Champ2 != null && Champ2.Defense <= 0)
            {
                temp.Add(Champ2);
                Champ2 = null;
            }
            if (Champ3 != null && Champ3.Defense <= 0)
            {
                temp.Add(Champ3);
                Champ3 = null;
            }
            if (Champ4 != null && Champ4.Defense <= 0)
            {
                temp.Add(Champ4);
                Champ4 = null;
            }

            return(temp);
        }
        public void AjouterAuChamp(Carte carteAjouter)
        {
            if (EspaceDisponible())
            {
                switch (EmplacementDisponible())
                {
                case 1:
                    Champ1 = (Batiment)carteAjouter;
                    break;

                case 2:
                    Champ2 = (Batiment)carteAjouter;
                    break;

                case 3:
                    Champ3 = (Batiment)carteAjouter;
                    break;

                case 4:
                    Champ4 = (Batiment)carteAjouter;
                    break;
                }
            }
        }