From 4e4a49d993620af796aaf94fd9a10f3707b12c9a Mon Sep 17 00:00:00 2001 From: fdai4581 Date: Mon, 6 Feb 2023 19:03:58 +0100 Subject: [PATCH] update --- src/main/java/BattleShip/Direction.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/BattleShip/Direction.java b/src/main/java/BattleShip/Direction.java index 785838f..29caf4c 100644 --- a/src/main/java/BattleShip/Direction.java +++ b/src/main/java/BattleShip/Direction.java @@ -13,4 +13,11 @@ public class Direction { return countHits; } + public void setCell(int b) { + cellLocation = b; + } + + public int getCell() { + return cellLocation; + } }