|
|
@ -12,6 +12,10 @@ public class Playfield { |
|
|
|
public Playfield(MinesweeperGame _MsG, int _Size, int _bombAmount) { |
|
|
|
MsG = _MsG; |
|
|
|
Size = _Size; |
|
|
|
generatePlayfield(_bombAmount); |
|
|
|
} |
|
|
|
|
|
|
|
public void generatePlayfield(int _bombAmount) { |
|
|
|
|
|
|
|
cells = new Cell[Size][Size]; |
|
|
|
|
|
|
@ -53,7 +57,7 @@ public class Playfield { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void calculateBombProximity(int row, int column) { |
|
|
|
|
|
|
|
if (row > 0) { |
|
|
|