Пример #1
0
 void Triangulate(HexCell cell)
 {
     for (HexDirection d = HexDirection.NE; d <= HexDirection.NW; d++)
     {
         Triangulate(d, cell);
     }
     if (!cell.IsUnderwater)
     {
         if (!cell.HasRiver && !cell.HasRoads)
         {
             features.AddFeature(cell, cell.Position);
         }
         if (cell.IsSpecial)
         {
             features.AddSpecialFeature(cell, cell.Position);
         }
     }
 }