Exemplo n.º 1
0
 public EntraineurSalarie(string nom, string prenom, TypeSexe sexe, DateTime dateNaissance, string numeroTelephone, Adresse adresse, bool estCompetiteur, double salaire,
                          DateTime dateEntreeClub, InfoBancaire informationsBancaires, Classement classement = default, int nombreDeCoursAEffectuer = 0, TypeMembre type = TypeMembre.Personnel)
     : base(nom, prenom, sexe, dateNaissance, numeroTelephone, adresse, type, estCompetiteur, classement)
 {
     Salaire                 = salaire;
     DateEntreeClub          = dateEntreeClub;
     InformationsBancaires   = informationsBancaires;
     NombreDeCoursAEffectuer = nombreDeCoursAEffectuer;
 }
Exemplo n.º 2
0
        public Personnel AjoutPersonnel(string fct, int mat, string n, string p, TypeSexe sexe)
        {
            Console.WriteLine("Vous allez ajouter un nouveau membre du Personnel :");
            Personnel nouv = new Personnel(fct, mat, n, p, sexe);

            Console.WriteLine("Le nouveau membre est un " + fct + " son matricule est " + mat + ". Il s'appelle " + n + " " + p + " et est de sexe " + sexe);
            toutLePersonnel.Add(nouv);
            return(nouv);
        }
Exemplo n.º 3
0
 public Personne(string nom, string prenom, TypeSexe sexe, DateTime dateNaissance, string numeroTelephone, Adresse adresse)
 {
     this.Nom             = nom;
     this.Prenom          = prenom;
     this.Sexe            = sexe;
     this.DateNaissance   = dateNaissance;
     this.NumeroTelephone = numeroTelephone;
     this.Adresse         = adresse;
 }
Exemplo n.º 4
0
 public Membre(string nom, string prenom, TypeSexe sexe, DateTime dateNaissance, string numeroTelephone, Adresse adresse, TypeMembre type, bool estCompetiteur, Classement classement = default) : base(nom, prenom, sexe, dateNaissance, numeroTelephone, adresse)
 {
     EstCompetiteur   = estCompetiteur;
     ARegleCotisation = false;
     NumeroTelephone  = numeroTelephone;
     Adresse          = adresse;
     Type             = type;
     Classement       = classement;
 }
Exemplo n.º 5
0
 public Monstre(int cagnotte, int matricule, string nom, string prenom, TypeSexe sexe, string fonction) : base(matricule, nom, prenom, sexe, fonction)
 {
     this.matricule = matricule;
     this.nom       = nom;
     this.prenom    = prenom;
     this.sexe      = sexe;
     this.fonction  = fonction;
     this.cagnotte  = cagnotte;
 }
        public static EntraineurIndependant Creation()
        {
            string   nom             = SaisieEntree("Nom: ");
            string   prenom          = SaisieEntree("Prénom: ");
            TypeSexe sexe            = SaisieSexe("Sexe (H/M): ");
            DateTime dateNaissance   = SaisieDate("Naissance JJ/MM/AAAA: ");
            string   numeroTelephone = SaisieEntree("Téléphone: ");
            Adresse  adresse         = Adresse.SaisieAdresse();
            int      nbCours         = SaisiePositive("Nombre de cours: ");

            return(new EntraineurIndependant(nom, prenom, sexe, dateNaissance, numeroTelephone, adresse, nbCours));
        }
Exemplo n.º 7
0
 public Dirigeant(string nom, string prenom, TypeSexe sexe, DateTime dateNaissance, string numeroTelephone, Adresse adresse, TypeDirigeant typeDirigeant, TypeMembre typeMembre, double salaire, DateTime dateEntreeClub, InfoBancaire informationsBancaires, bool estCompetiteur = false, Classement classement = null)
     : base(nom, prenom, sexe, dateNaissance, numeroTelephone, adresse, typeMembre, estCompetiteur, classement)
 {
     if (classement == null)
     {
         this.Classement = new Classement();
     }
     this.TypeDirigeant         = typeDirigeant;
     this.Salaire               = salaire;
     this.DateEntreeClub        = dateEntreeClub;
     this.InformationsBancaires = informationsBancaires;
 }
Exemplo n.º 8
0
        public static Membre Creation()
        {
            string     nom             = SaisieEntree("Nom: ");
            string     prenom          = SaisieEntree("Prénom: ");
            TypeSexe   sexe            = SaisieSexe("Sexe (H/M): ");
            DateTime   dateNaissance   = SaisieDate("Naissance JJ/MM/AAAA: ");
            string     numeroTelephone = SaisieEntree("Téléphone: ");
            Adresse    adresse         = Adresse.SaisieAdresse();
            TypeMembre type            = TypeMembre.Adherent;

            (bool estCompetiteur, Classement classement) = Classement.SaisieCompetiteur();
            return(new Membre(nom, prenom, sexe, dateNaissance, numeroTelephone, adresse, type, estCompetiteur, classement));
        }
Exemplo n.º 9
0
        public Fantome(int cagnotte, int matricule, string nom, string prenom, TypeSexe sexe, string fonction) : base(cagnotte, matricule, nom, prenom, sexe, fonction)
        {
            this.matricule = matricule;
            this.nom       = nom;
            this.prenom    = prenom;
            this.sexe      = sexe;
            this.fonction  = fonction;

            if (this.affectation != null)
            {
                this.affectation.Equipe.Add(this);
            }
            this.cagnotte = cagnotte;
        }
Exemplo n.º 10
0
        public void AjouterSorcierManu()
        {
            Console.WriteLine("Sorcier.");
            Console.WriteLine("Veuillez saisir un matricule.");
            int matricule = int.Parse(Console.ReadLine());

            Console.WriteLine("Veuillez saisir un nom.");
            string nom = Console.ReadLine();

            Console.WriteLine("Veuillez saisir un prenom.");
            string prenom = Console.ReadLine();

            Console.WriteLine("Veuillez choisir un sexe parmi les trois cas suivants :\n1. Male.\n2. Femelle.\n3. Autre.");
            string   sexe_string = Console.ReadLine();
            TypeSexe sexe        = CastTypeSexe(sexe_string);

            Console.WriteLine("Veuillez saisir une fonction.");
            string fonction = Console.ReadLine();

            Console.WriteLine("Veuillez choisir un tatouage parmi les quatre cas suivants :\n1. Novice.\n2. Mega.\n3. Giga.\n4. Strata.");
            string        tatouage_string = Console.ReadLine();
            Grade         tatouage        = CastToGrade(tatouage_string);
            int           stop;
            List <string> liste_pouvoirs = new List <string>();

            Console.WriteLine("Veuillez saisir les pouvoirs de votre Sorcier, un par un.");
            do
            {
                Console.Clear();
                Console.WriteLine("Ajouter un pouvoirs. 1. (oui)\n2. (non)");
                stop = int.Parse(Console.ReadLine());
                switch (stop)
                {
                case 1:
                    Console.WriteLine("Veuillez saisir le pouvoir.");
                    string pouvoir = Console.ReadLine();
                    liste_pouvoirs.Add(pouvoir);
                    break;

                case 2:
                    break;

                default:
                    break;
                }
            } while (stop != 2);

            this.toutLePersonnel.Add(new Sorcier(matricule, nom, prenom, sexe, fonction, tatouage, liste_pouvoirs));
        }
Exemplo n.º 11
0
 public CPersonnel(int matriculeInt, string nomStr, string prenomStr, TypeSexe sexeTypeSexe, string fonctionStr)
 {
     try
     {
         m_matriculeInt = matriculeInt;
         m_nomStr       = nomStr;
         m_prenomStr    = prenomStr;
         m_sexeTypeSexe = sexeTypeSexe;
         m_fonctionStr  = fonctionStr;
         // Le fait que ce soit bien des int ou des string est faire dans la lecture fichier
         //Si la string lu dans le csv est convertible en int et length = 5 alors on dit : m_matriculeInt = matriculeInt; else throw new Exception ("Matricule invalide (int)" + m_matriculeInt)
     }
     catch (Exception e)
     {
         Console.WriteLine("ERREUR DANS CONSTRUCTEUR CPERSONNEL : " + e.Message);
     }
 }
Exemplo n.º 12
0
 public CPersonnel(string matriculeStr, string nomStr, string prenomStr, string sexeStr, string fonctionStr)
 {
     try
     {
         int matriculeInt = Int32.Parse(matriculeStr);
         if (matriculeStr.Length == 5) // matricule doit etre egal a 5
         {
             if (nomStr.Length != 0)
             {
                 if (prenomStr.Length != 0)
                 {
                     TypeSexe sexePersonnel = ConvertStringToTypeSexe(sexeStr);
                     if (fonctionStr.Length != 0)
                     {
                         m_matriculeInt = matriculeInt;
                         m_nomStr       = nomStr;
                         m_prenomStr    = prenomStr;
                         m_sexeTypeSexe = sexePersonnel;
                         m_fonctionStr  = fonctionStr;
                     }
                     else
                     {
                         throw new Exception("La fonction ne doit pas etre null");
                     }
                 }
                 else
                 {
                     throw new Exception("Le prenom ne doit pas etre null");
                 }
             }
             else
             {
                 throw new Exception("Le nom ne doit pas etre null");
             }
         }
         else
         {
             throw new Exception("Le matricule doit faire 5 chiffres");
         }
     }
     catch (Exception e)
     {
         Console.WriteLine("ERREUR CONSTRUCTEUR CPERSONNEL : " + e.Message);
     }
 }
Exemplo n.º 13
0
        public new static EntraineurSalarie Creation()
        {
            string     nom             = SaisieEntree("Nom: ");
            string     prenom          = SaisieEntree("Prénom: ");
            TypeSexe   sexe            = SaisieSexe("Sexe (H/M): ");
            DateTime   dateNaissance   = SaisieDate("Naissance JJ/MM/AAAA: ");
            string     numeroTelephone = SaisieEntree("Téléphone: ");
            Adresse    adresse         = Adresse.SaisieAdresse();
            TypeMembre type            = TypeMembre.Personnel;

            (bool estCompetiteur, Classement classement) = Classement.SaisieCompetiteur();
            int          salaire       = SaisiePositive("Salaire: ");
            DateTime     dateEntree    = DateTime.Now.Date;
            InfoBancaire infoBancaires = SaisieInfoBancaires();
            int          nbCours       = SaisiePositive("Nombre de cours: ");

            return(new EntraineurSalarie(nom, prenom, sexe, dateNaissance, numeroTelephone, adresse, estCompetiteur, salaire, dateEntree, infoBancaires, classement, nbCours));
        }
        public void Click_Button_Validation(object sender, RoutedEventArgs e)
        {
            var         radios       = SexeSP.Children.OfType <RadioButton>();
            RadioButton checkedRadio = radios.FirstOrDefault(rb => rb.GroupName == "SexeRadioButton" && rb.IsChecked == true);

            sexe      = (TypeSexe)Enum.Parse(typeof(TypeSexe), Convert.ToString(checkedRadio.Content).ToLower());
            fonction  = FunctionTextBox.Text;
            matricule = Convert.ToInt32(MatriculeTextBox.Text);
            nom       = NameTextBox.Text;
            prenom    = FirstNameTextBox.Text;

            var         radios1       = TypeSP.Children.OfType <RadioButton>();
            RadioButton checkedRadio1 = radios1.FirstOrDefault(rb => rb.GroupName == "TypeRadioButton" && rb.IsChecked == true);

            switch (checkedRadio1.Content)
            {
            case "Monstre": AjoutMonstre();
                break;

            case "Demon": AjoutDemon();
                break;

            case "Fantome": AjoutFantome();
                break;

            case "Loup Garou": AjoutLoupGarou();
                break;

            case "Sorcier": AjoutSorcier();
                break;

            case "Vampire": AjoutVampire();
                break;

            case "Zombie": AjoutZombie();
                break;
            }

            ValidationLabel.Content = "Le membre a bien été ajouté à la base de donnée";
        }
Exemplo n.º 15
0
 public CSorcier(int matricule, string nom, string prenom, TypeSexe sexe, string fonction, Grade tatouage, List <string> pouvoirs) : base(matricule, nom, prenom, sexe, fonction)
 {
     m_tatouageGrade   = tatouage;
     m_pouvoirsListStr = pouvoirs;
 }
 public EntraineurIndependant(string nom, string prenom, TypeSexe sexe, DateTime dateNaissance, string numeroTelephone, Adresse adresse, int nombreDeCoursAEffectuer = 0) : base(nom, prenom, sexe, dateNaissance, numeroTelephone, adresse)
 {
     NombreDeCoursAEffectuer = nombreDeCoursAEffectuer;
 }
Exemplo n.º 17
0
 public LoupGarou(double unIndiceCruaute, Attraction uneAffectation, int uneCagnotte, string uneFonction, int unMatricule, string unNom, string unPrenom, TypeSexe unSexe) : base(uneAffectation, uneCagnotte, uneFonction, unMatricule, unNom, unPrenom, unSexe)
 {
     indiceCruaute = unIndiceCruaute;
 }
Exemplo n.º 18
0
 public LoupGarou(string fct, int mat, string n, string p, TypeSexe sexe, int cagn, string affect, double idCruaute) : base(fct, mat, n, p, sexe, cagn, affect)
 {
     this.indiceCruaute = idCruaute;
 }
Exemplo n.º 19
0
 public LoupGarou(double indiceCruaute, int cagnotte, int matricule, string nom, string prenom, TypeSexe sexe, string fonction) : base(cagnotte, matricule, nom, prenom, sexe, fonction)
 {
     this.matricule     = matricule;
     this.nom           = nom;
     this.prenom        = prenom;
     this.sexe          = sexe;
     this.fonction      = fonction;
     this.cagnotte      = cagnotte;
     this.indiceCruaute = indiceCruaute;
 }
Exemplo n.º 20
0
 public LoupGarou(double indiceCruaute, Attraction affectation, int cagnotte, int matricule, string nom, string prenom, TypeSexe sexe, string fonction) : base(affectation, cagnotte, matricule, nom, prenom, sexe, fonction)
 {
     this.matricule   = matricule;
     this.nom         = nom;
     this.prenom      = prenom;
     this.sexe        = sexe;
     this.fonction    = fonction;
     this.affectation = affectation;
     if (this.affectation != null)
     {
         this.affectation.equipe.Add(this);
     }
     this.cagnotte      = cagnotte;
     this.indiceCruaute = indiceCruaute;
 }
Exemplo n.º 21
0
 public Zombie(int matricule, string nom, string prenom, TypeSexe sexe, string fonction, int cagnotte, string affectation, int degreeDecomposition, CouleurZ teint) : base(matricule, nom, prenom, sexe, fonction, affectation, cagnotte)
 {
     this.degreeDecomposition = degreeDecomposition;
     this.teint = teint;
 }
Exemplo n.º 22
0
 public CLoupGarou(int matricule, string nom, string prenom, TypeSexe sexe, string fonction, int cagnotte, CAttraction affectation, double indiceCruaute) : base(matricule, nom, prenom, sexe, fonction, cagnotte, affectation)
 {
     m_indiceCruauteDbl = indiceCruaute;
 }
Exemplo n.º 23
0
        static void RecuperationInfoPersonnel(string nomFichier)
        {
            List <Personnel>     maListe              = new List <Personnel>();
            List <Sorcier>       maListeSorcier       = new List <Sorcier>();
            List <Monstre>       maListeMonstre       = new List <Monstre>();
            List <Demon>         maListeDemon         = new List <Demon>();
            List <Fantome>       maListeFantome       = new List <Fantome>();
            List <LoupGarou>     maListeLoup          = new List <LoupGarou>();
            List <Vampire>       maListeVampire       = new List <Vampire>();
            List <Zombie>        maListeZombie        = new List <Zombie>();
            List <Attraction>    maListeAttraction    = new List <Attraction>();
            List <Boutique>      maListeBoutique      = new List <Boutique>();
            List <DarkRide>      maListeDarkRide      = new List <DarkRide>();
            List <RollerCoaster> maListeRollerCoaster = new List <RollerCoaster>();
            List <Spectacle>     maListeSpectacle     = new List <Spectacle>();

            //copier/coller du fichier disponible sur moodle
            StreamReader monStreamReader = new StreamReader(nomFichier); //ouvrir un fichier en flux d'entrée
            string       ligne           = monStreamReader.ReadLine();   //lire la première ligne du fichier


            while (ligne != null)                 //tant que la ligne lue n'est pas null --> encore des données
            {
                string[] temp = ligne.Split(';'); //Découper selon le séparateur ';' --> on obtient un tableau de chaine

                //MONSTRE
                TypeSexe sex = TypeSexe.male;               //par default male
                Enum.TryParse <TypeSexe>(temp[4], out sex); //car 4ieme indice du tab csv et modifie valeur sex par default

                //SORCIER
                Grade grade = Grade.novice;                //par default novice
                Enum.TryParse <Grade>(temp[6], out grade); //6ieme indice et modifie val grade par default

                //ZOMBIE
                couleurZ couleur = couleurZ.bleuatre;           //par default bleuatre
                Enum.TryParse <couleurZ>(temp[8], out couleur); //8ieme indice et modifie val grade par default

                //BOUTIQUE
                TypeBoutique typeb = TypeBoutique.souvenir;
                Enum.TryParse <TypeBoutique>(temp[6], out typeb);

                //ROLLERCOASTER
                TypeCategorie categorie = TypeCategorie.bobsleigh;
                Enum.TryParse <TypeCategorie>(temp[6], out categorie);

                //DATETIME
                //DateTime myDate;
                //DateTime.TryParse(temp[8], out myDate);

                string[] tempL = ligne.Split('-');//Découper selon le séparateur '-' pour recuperer les pouvoirs dans une liste

                //Liste Horaires
                string[] tempH = ligne.Split(' ');//Découper selon le séparateur ' ' pour recuperer les horaires dans une liste
                tempH.ToList();
                // List<DateTime> time = tempH.Select(date => DateTime.Parse(date)).ToList();

                switch (temp[0])
                {
                case "Sorcier":
                    Console.WriteLine();
                    foreach (string val in temp)
                    {
                        Console.Write("  " + val);
                    }
                    Sorcier sor = new Sorcier(temp[5], Convert.ToInt32(temp[1]), temp[2], temp[3], sex, grade, tempL.ToList());      //aller chercher la case 5 / .ToList transforme en liste
                                                                                                                                     //alimenter la liste de téléphone
                    maListe.Add(sor);
                    maListeSorcier.Add(sor);
                    break;

                case "Monstre":
                    Console.WriteLine();
                    foreach (string val in temp)
                    {
                        Console.Write(" " + val);
                    }

                    Monstre mon = new Monstre(temp[5], Int32.Parse(temp[1]), temp[2], temp[3], sex, Int32.Parse(temp[6]), temp[7]);    //trouver fonction qui trouve lattraction grace a l'identifiant
                                                                                                                                       //alimenter la liste de monstre
                    maListe.Add(mon);
                    maListeMonstre.Add(mon);
                    break;


                case "Demon":
                    Console.WriteLine();
                    foreach (string val in temp)
                    {
                        Console.Write(" " + val);
                    }

                    Demon dem = new Demon(temp[5], Int32.Parse(temp[1]), temp[2], temp[3], sex, Int32.Parse(temp[6]), temp[7], Int32.Parse(temp[8]), false);
                    maListe.Add(dem);
                    maListeDemon.Add(dem); break;

                case "Fantome":
                    Console.WriteLine();
                    foreach (string val in temp)
                    {
                        Console.Write(" " + val);
                    }

                    Fantome fant = new Fantome(temp[5], Int32.Parse(temp[1]), temp[2], temp[3], sex, Int32.Parse(temp[6]), temp[7]);
                    maListe.Add(fant);
                    maListeFantome.Add(fant); break;

                case "LoupGarou":
                    Console.WriteLine();
                    foreach (string val in temp)
                    {
                        Console.Write(" " + val);
                    }

                    LoupGarou lou = new LoupGarou(temp[5], Int32.Parse(temp[1]), temp[2], temp[3], sex, Int32.Parse(temp[6]), temp[7], Double.Parse(temp[8]));
                    maListe.Add(lou);
                    maListeLoup.Add(lou); break;

                case "Vampire":
                    Console.WriteLine();
                    foreach (string val in temp)
                    {
                        Console.Write(" " + val);
                    }

                    Vampire vam = new Vampire(temp[5], Int32.Parse(temp[1]), temp[2], temp[3], sex, Int32.Parse(temp[6]), temp[7], Double.Parse(temp[8]));
                    maListe.Add(vam);
                    maListeVampire.Add(vam); break;

                case "Zombie":
                    Console.WriteLine();
                    foreach (string val in temp)
                    {
                        Console.Write("  " + val);
                    }

                    Zombie zom = new Zombie(temp[5], Int32.Parse(temp[1]), temp[2], temp[3], sex, Int32.Parse(temp[6]), temp[7], Int32.Parse(temp[9]), couleur, false);
                    maListe.Add(zom);
                    maListeZombie.Add(zom); break;

                case "Boutique":
                    Console.WriteLine();
                    foreach (string val in temp)
                    {
                        Console.Write(" " + val);
                    }

                    Boutique bou = new Boutique(temp[4], TimeSpan.Zero, null, Int32.Parse(temp[1]), false, temp[5], Int32.Parse(temp[3]), temp[2], true, temp[5], typeb);
                    maListeAttraction.Add(bou);
                    maListeBoutique.Add(bou); break;

                case "DarkRide":
                    Console.WriteLine();
                    foreach (string val in temp)
                    {
                        Console.Write(" " + val);
                    }

                    DarkRide dark = new DarkRide(temp[4], TimeSpan.Zero, null, Int32.Parse(temp[1]), false, temp[5], Int32.Parse(temp[3]), temp[2], true, temp[5], TimeSpan.Zero, true);
                    maListeAttraction.Add(dark);
                    maListeDarkRide.Add(dark); break;

                case "RollerCoaster":
                    Console.WriteLine();
                    foreach (string val in temp)
                    {
                        Console.Write(" " + val);
                    }

                    RollerCoaster roll = new RollerCoaster(temp[4], TimeSpan.Zero, null, Int32.Parse(temp[1]), false, temp[5], Int32.Parse(temp[3]), temp[2], true, temp[5], Int32.Parse(temp[7]), categorie, float.Parse(temp[8]));
                    maListeAttraction.Add(roll);
                    maListeRollerCoaster.Add(roll); break;

                case "Spectacle":
                    Console.WriteLine();
                    foreach (string val in temp)
                    {
                        Console.Write(" " + val);
                    }
                    Spectacle spec = new Spectacle(temp[4], TimeSpan.Zero, null, Int32.Parse(temp[1]), false, "try", Int32.Parse(temp[3]), temp[2], true, temp[5], "00:00", Int32.Parse(temp[7]), temp[6]);
                    maListeAttraction.Add(spec);
                    maListeSpectacle.Add(spec); break;
                }
                ligne = monStreamReader.ReadLine();
            }
            monStreamReader.Close();
        }
Exemplo n.º 24
0
 public Monstre(int matricule, string nom, string prenom, TypeSexe sexe, string fonction, int cagnotte, Attraction affectation) : base(matricule, nom, prenom, sexe, fonction)
 {
     this.cagnotte    = cagnotte;
     this.affectation = affectation;
 }
 public Vampire(double unIndiceLuminosite, Attraction uneAffectation, int uneCagnotte, string uneFonction, int unMatricule, string unNom, string unPrenom, TypeSexe unSexe) : base(uneAffectation, uneCagnotte, uneFonction, unMatricule, unNom, unPrenom, unSexe)
 {
     indiceLuminosite = unIndiceLuminosite;
 }
Exemplo n.º 26
0
 public Fantome(int matricule, string nom, string prenom, TypeSexe sexe, string fonction, int affectation1, int cagnotte1)
     : base(matricule, nom, prenom, sexe, fonction, affectation1, cagnotte1)
 {
 }
 public Sorcier(List <string> desPouvoirs, Grade unTatouage, string uneFonction, int unMatricule, string unNom, string unPrenom, TypeSexe unSexe) : base(uneFonction, unMatricule, unNom, unPrenom, unSexe)
 {
     pouvoirs    = desPouvoirs;
     tatouage    = unTatouage;
     lesPouvoirs = ListToString();
 }
Exemplo n.º 28
0
 public Vampire(int matricule, string nom, string prenom, TypeSexe sexe, string fonction, int cagnotte1, int affectation1, float indiceLumi)
     : base(matricule, nom, prenom, sexe, fonction, affectation1, cagnotte1)
 {
     this.indiceLuminosite = indiceLumi;
 }
Exemplo n.º 29
0
 public LoupGarou(int matricule, string nom, string prenom, TypeSexe sexe, string fonction, int affectation1, int cagnotte1, double indicecruaute)
     : base(matricule, nom, prenom, sexe, fonction, affectation1, cagnotte1)
 {
     this.indiceCruaute = indicecruaute;
 }
Exemplo n.º 30
0
 // constructeur
 public Vampire(int matricule, string nom, string prenom, TypeSexe sexe, string fonction, int cagnotte, Attraction affectation, float indiceLuminosite)
     : base(matricule, nom, prenom, sexe, fonction, cagnotte, affectation)
 {
     this.indiceLuminosite = indiceLuminosite;
 }