Beispiel #1
0
        public string ChoisirUnePossibilite(string possibilite1, string possibilite2)
        {
            PartieForm.tempJoueur = this;
            ChoixForm.typeChoix   = "Possibilité";
            ChoixForm.bouton1     = possibilite1;
            ChoixForm.bouton2     = possibilite2;

            ChoixForm choixForm = new ChoixForm();

            choixForm.ShowDialog();

            return(ChoixForm.possibiliteChoisie);
        }
Beispiel #2
0
        public List <Carte> ChoisirDesCartes(string type, List <Carte> choix, int nbCarte, bool obligation)
        {
            //On assigne les variables nécessaires
            PartieForm.tempJoueur = this;
            ChoixForm.typeChoix   = type;
            ChoixForm.listeChoix  = choix;
            ChoixForm.obligation  = obligation;
            ChoixForm.nbCarte     = nbCarte;

            ChoixForm choixForm = new ChoixForm();

            choixForm.ShowDialog();

            return(ChoixForm.listeCartesChoisies);
        }
Beispiel #3
0
        public Carte ChoisirUneCarte(string type, List <Carte> choix, bool obligation)
        {
            //On assigne les variables nécessaires
            PartieForm.tempJoueur = this;
            ChoixForm.typeChoix   = type;
            ChoixForm.listeChoix  = choix;
            ChoixForm.obligation  = obligation;
            ChoixForm.nbCarte     = 1;

            ChoixForm choixForm = new ChoixForm();

            choixForm.ShowDialog();
            try
            { return(ChoixForm.listeCartesChoisies[0]); }
            catch (NullReferenceException)
            {
                return(null);
            }
        }