|
@ -12,6 +12,10 @@ public class Playfield { |
|
|
public Playfield(MinesweeperGame _MsG, int _Size, int _bombAmount) { |
|
|
public Playfield(MinesweeperGame _MsG, int _Size, int _bombAmount) { |
|
|
MsG = _MsG; |
|
|
MsG = _MsG; |
|
|
Size = _Size; |
|
|
Size = _Size; |
|
|
|
|
|
generatePlayfield(_bombAmount); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void generatePlayfield(int _bombAmount) { |
|
|
|
|
|
|
|
|
cells = new Cell[Size][Size]; |
|
|
cells = new Cell[Size][Size]; |
|
|
|
|
|
|
|
|