Example #1
0
 /// <summary>
 ///     This function goes through the map and addds walls to empty spaces adjacent to floors.
 /// </summary>
 private void FillInWalls()
 {
     for (var x = 0; x < FeatureMap.GetLength(0); x++)
     {
         for (var y = 0; y < FeatureMap.GetLength(1); y++)
         {
             if (FeatureMap[x, y] == 0 && CheckAdjacent(x, y) > 0)
             {
                 FeatureMap[x, y] = (int)LevelDecoration.Wall;
             }
         }
     }
 }