Exemple #1
0
 public Labyrinthe(char[,] level)
 {
     for (int i = 0; i < 22; i++)
     {
         for (int j = 0; j < 19; j++)
         {
             laby[i, j] = new PCase();
             laby[i, j].setStatementFromChar(level[i, j]);
         }
         laby[i, 19] = new PCase("nextLine");
     }
 }
Exemple #2
0
 public Labyrinthe()
 {
     for (int i = 0; i < 22; i++)
     {
         for (int j = 0; j < 19; j++)
         {
             if (i == 0 || i == 21)
             {
                 laby[i, j] = new PCase("horizontal");
             }
             else if (j == 0 || j == 18)
             {
                 laby[i, j] = new PCase("vertical");
             }
             else
             {
                 laby[i, j] = new PCase("toeat");
             }
         }
         laby[i, 19] = new PCase();
         laby[i, 19].setStatement("nextLine");
     }
 }