public void DrawMap(Grid pole) { MinePositionsGenerator mpg = new MinePositionsGenerator(); //minePositions.AddRange(mpg.GenerateMinePositions(Settings.NR_OF_MINES, minefield)); for (ushort i = 0; i < minePositions.Count; ++i) { //Mine newMine = new Mine(); //Grid.SetColumn(newMine.mineImage, (int)minePositions[i].X); //Grid.SetRow(newMine.mineImage, (int)minePositions[i].Y); //pole.Children.Add(newMine.mineImage); } }
public void GenerateMinefield(Minefield minefield) { MinePositionsGenerator mpg = new MinePositionsGenerator(); //minePositions.AddRange(mpg.GenerateMinePositions(Settings.NR_OF_MINES, minefield)); }