Exemple #1
0
        public void ajouterAeroport(string p_nom, int p_minPass, int p_maxPass, int p_minMarch, int p_maxMarch, int[] p_pos, int[] p_taille) //Ajouter un aéroport
        {
            Usine    usine    = Usine.obtenirUsine();
            PosCarte pos      = usine.creerPos(p_pos[0], p_pos[1], p_taille);
            Aeroport aeroport = usine.creerAeroport(p_nom, p_minPass, p_maxPass, p_minMarch, p_maxMarch, pos);

            m_aeroports.Add(aeroport);
        }
Exemple #2
0
        public Aeroport creerAeroport(string p_nom, int p_minPass, int p_maxPass, int p_minMarch, int p_maxMarch, PosCarte p_pos) //Créer un objet aéroport
        {
            Aeroport aeroport = new Aeroport(p_nom, p_minPass, p_maxPass, p_minMarch, p_maxMarch, p_pos);

            return(aeroport);
        }