From 0ae65273614611101147f4eead9db0e5e4e6c1e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9=20=D0=9F=D0=BE=D0=BB?= =?UTF-8?q?=D0=B5=D0=B2=D0=BE=D0=B9?= Date: Sat, 5 Nov 2022 16:31:00 +0400 Subject: [PATCH] First stage: Refactoring MapWithSetArtilleriesGeneric --- MapWithSetArtilleriesGeneric.java | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/MapWithSetArtilleriesGeneric.java b/MapWithSetArtilleriesGeneric.java index 79fd53b..826e6d4 100644 --- a/MapWithSetArtilleriesGeneric.java +++ b/MapWithSetArtilleriesGeneric.java @@ -1,5 +1,6 @@ import java.awt.*; import java.awt.image.BufferedImage; +import java.util.Iterator; public class MapWithSetArtilleriesGeneric { public final int _pictureWidth; @@ -12,7 +13,7 @@ public class MapWithSetArtilleriesGeneric(width * height); + _setArtilleries = new SetArtilleriesGeneric<>(width * height); _pictureWidth = picWidth; _pictureHeight = picHeight; _map = map; @@ -36,13 +37,8 @@ public class MapWithSetArtilleriesGeneric