|
@ -65,6 +65,7 @@ public class Cell extends JButton { |
|
|
|
|
|
|
|
|
if (type == CellType.Number) { |
|
|
if (type == CellType.Number) { |
|
|
setBackground(Color.gray); |
|
|
setBackground(Color.gray); |
|
|
|
|
|
playfield.cellDried(); |
|
|
} else { |
|
|
} else { |
|
|
setBackground(Color.red); |
|
|
setBackground(Color.red); |
|
|
} |
|
|
} |
|
@ -72,6 +73,9 @@ public class Cell extends JButton { |
|
|
} else { |
|
|
} else { |
|
|
flagged = true; |
|
|
flagged = true; |
|
|
setBackground(Color.cyan); |
|
|
setBackground(Color.cyan); |
|
|
|
|
|
if (type == CellType.Number) { |
|
|
|
|
|
playfield.cellFlooded(); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|