Esempio n. 1
0
        ////////////////////////////////////////////////////////////////////////
        ///
        /// @fn protected void resetConfig()
        /// @brief Reset des points et aux configurations de partie.
        /// @return Aucune.
        ///
        ////////////////////////////////////////////////////////////////////////
        protected void resetConfig()
        {
            billesEnJeu = 0;
            FonctionsNatives.resetNombreBillesCourantes();
            nombreDeBillesGagnes  = 0;
            nombreDeBillesUtilise = 0;
            pointsPartie          = 0;
            pointsTotale          = 0;
            pointsGagnerPartie    = FonctionsNatives.obtenirPointsGagnerPartie();
            pointsGagnerBille     = FonctionsNatives.obtenirPointsGagnerBille();
            nombreBillesInit      = FonctionsNatives.obtenirNombreDeBilles();
            billesDisponibles     = nombreBillesInit;
            label_nbGagnes.Text   = nombreDeBillesGagnes.ToString();
            setProprietes();
            if (!firstStart)
            {
                Program.myCustomConsole.Update();
            }
            FonctionsNatives.bouclerSon(bgm, bgm.Length);
            FonctionsNatives.ajusterVolume(bgm, bgm.Length, 90);
            StringBuilder billeSound = new StringBuilder("rolling");

            FonctionsNatives.ajusterVolume(billeSound, billeSound.Length, 100);
            FonctionsNatives.jouerSon(bgm, bgm.Length);
        }