From 2c7be938202a38579f32bec54ab7b393cf5b5a41 Mon Sep 17 00:00:00 2001 From: fdai4581 Date: Mon, 6 Feb 2023 19:02:14 +0100 Subject: [PATCH] update --- src/main/java/BattleShip/Direction.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/BattleShip/Direction.java b/src/main/java/BattleShip/Direction.java index c14f5bd..785838f 100644 --- a/src/main/java/BattleShip/Direction.java +++ b/src/main/java/BattleShip/Direction.java @@ -5,4 +5,12 @@ public class Direction { int countHits; int cellLocation; + public void setCount(int a) { + countHits = a; + } + + public int getCount() { + return countHits; + } + }