From 7419bb5ec96e4d51e4181b5a83dd1b41564b5d38 Mon Sep 17 00:00:00 2001 From: fdai4581 Date: Mon, 6 Feb 2023 19:33:32 +0100 Subject: [PATCH] update --- src/main/java/BattleShip/BSButton.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/BattleShip/BSButton.java b/src/main/java/BattleShip/BSButton.java index c9eb96e..b6c2426 100644 --- a/src/main/java/BattleShip/BSButton.java +++ b/src/main/java/BattleShip/BSButton.java @@ -7,4 +7,12 @@ public class BSButton extends JButton { int gridLocation; Ship cellContents = null; + public void setGridLocation(int l) { + gridLocation = l; + } + + public int getGridLocation() { + return gridLocation; + } + } \ No newline at end of file