From 73f023d78256129b20117c2125cd7ee6c32707a9 Mon Sep 17 00:00:00 2001 From: fdai4581 Date: Mon, 6 Feb 2023 19:35:22 +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 b6c2426..3262b23 100644 --- a/src/main/java/BattleShip/BSButton.java +++ b/src/main/java/BattleShip/BSButton.java @@ -15,4 +15,12 @@ public class BSButton extends JButton { return gridLocation; } + public void setCellContents(Ship s) { + cellContents = s; + } + + public Ship getCellContents() { + return cellContents; + } + } \ No newline at end of file