From 3da4edebf6edfb2b2ac4f62cfe9c4f49dc8d3923 Mon Sep 17 00:00:00 2001 From: fdai4581 Date: Mon, 6 Feb 2023 18:55:52 +0100 Subject: [PATCH] update --- src/main/java/BattleShip/Ship.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/BattleShip/Ship.java b/src/main/java/BattleShip/Ship.java index 65609ee..292d55d 100644 --- a/src/main/java/BattleShip/Ship.java +++ b/src/main/java/BattleShip/Ship.java @@ -11,4 +11,16 @@ public class Ship { length = l; name = n; } + + public String getName() { + return name; + } + + public int getLength() { + return length; + } + + public boolean isKilled() { + return kill; + } }