예제 #1
0
        public void initTerrain()
        {
            int i = 0;
            int j = 0;

            while (i < this.Vertical)
            {
                while (j < this.Horizontal)
                {
                    Carte[j, i] = new Case(j, i, 0, false, false);
                    j++;
                }
                i++;
                j = 0;
            }

            // -1 du a l'indexage 0..n
            CaseFin   fin   = new CaseFin(this.Horizontal - 1, this.Vertical - 1);
            CaseDebut Debut = new CaseDebut(0, 0);

            Debut.AjouterFin(fin);
        }
예제 #2
0
 public void AjouterFin(CaseFin cf)
 {
     Fin = cf;
 }
예제 #3
0
 public CaseDebut(int x, int y)
 {
     Fin = null;
 }