예제 #1
0
 // ---------- //
 // ---- METHODES ---- //
 public CEnvironnement()
 {
     m_cadeaux = new CCadeau[4];
     m_cadeaux[0] = new CCadeau();
     m_cadeaux[1] = new CCadeau();
     m_cadeaux[2] = new CCadeau();
     m_cadeaux[3] = new CCadeau();
     m_bougies = new CBougie[10];
     m_bougies[0] = new CBougie();
     m_bougies[1] = new CBougie();
     m_bougies[2] = new CBougie();
     m_bougies[3] = new CBougie();
     /*m_bougies[4] = new CBougie();
     m_bougies[5] = new CBougie();
     m_bougies[6] = new CBougie();
     m_bougies[7] = new CBougie();
     m_bougies[8] = new CBougie();
     m_bougies[9] = new CBougie();*/
     /*m_bougies[10] = new CBougie();
     m_bougies[11] = new CBougie();*/
     m_verres = new CVerre[12];
     m_verres[0] = new CVerre();
     m_verres[1] = new CVerre();
     m_verres[2] = new CVerre();
     m_verres[3] = new CVerre();
     m_verres[4] = new CVerre();
     m_verres[5] = new CVerre();
     m_verres[6] = new CVerre();
     m_verres[7] = new CVerre();
     m_verres[8] = new CVerre();
     m_verres[9] = new CVerre();
     m_verres[10] = new CVerre();
     m_verres[11] = new CVerre();
 }
예제 #2
0
 public CTravailBougie(CBougie bougie, int indice)
 {
     m_bougie = bougie;
     m_indiceBougie = indice;
     m_typeTravail = typeTravail.TRAVAILBOUGIE;
     m_accessibilite = 1;
 }
예제 #3
0
        private int m_coefficientDistance = 1; // Importance que l'on donne à la distance

        #endregion Fields

        #region Constructors

        public CTravailToutesBougies(CBougie[] bougies)
        {
            m_bougies = bougies;
            m_typeTravail = typeTravail.TRAVAILBOUGIE;
            m_accessibilite = 1;
            debut = new Math.coordonnees();
            if (CRobot.getColor() == couleur.JESUISBLEU)
            {
                debut.x = 600;
                debut.y = 1350;
            }
            else
            {
                debut.x = 3000-600;
                debut.y = 1350;
            }
        }