Exemple #1
0
 public World()
 {//да
     tiles = new Tile[World_Size][];
     for (int i = 0; i < World_Size; i++)
     {
         tiles[i] = new Tile[World_Size];
     }
     labir     = Labirint.Get_New_labirint(World_Size, World_Size);
     exit_cell = Labirint.GetLongWay(labir, World_Size, World_Size);
     for (int x = 0; x < World_Size; x++)
     {
         for (int y = 0; y < World_Size; y++)
         {
             if (labir[x, y].type == "0")
             {
                 SetTile(TileType.Wall, x, y);
             }
             if (labir[x, y].type == " ")
             {
                 SetTile(TileType.Cell, x, y);
             }
             if (labir[x, y].Way_count == exit_cell.Way_count)
             {
                 SetTile(TileType.exit, x, y);
             }
         }
     }
 }
Exemple #2
0
 public Labirint.CELL GetCell(int x, int y)
 {
     Labirint.CELL current_cell = new Labirint.CELL();
     return(current_cell);
 }