From 7152084ac6ed16a3b51732a1b76b12955f969ea8 Mon Sep 17 00:00:00 2001 From: fdai4581 Date: Tue, 7 Feb 2023 21:47:11 +0100 Subject: [PATCH] update --- src/main/java/BattleShip/GridGUI.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/BattleShip/GridGUI.java b/src/main/java/BattleShip/GridGUI.java index 158f734..f7023f5 100644 --- a/src/main/java/BattleShip/GridGUI.java +++ b/src/main/java/BattleShip/GridGUI.java @@ -73,6 +73,8 @@ public class GridGUI { } } } + public boolean getClicked() {return clicked;} + public class MyCellListener implements ActionListener { public void actionPerformed(ActionEvent a) { if(!clicked) {