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); }
public void AjouterFin(CaseFin cf) { Fin = cf; }
public CaseDebut(int x, int y) { Fin = null; }