From c561df4a66723063363bcbc998ea3925c63ddec3 Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Sat, 22 Feb 2020 23:38:26 +0100 Subject: [PATCH] =?UTF-8?q?Sm=C3=A5fikser?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Flytter TextureConverterUtil til Utility pakken Legger til final på noen felter i grid Fjerner en ubrukt import i DrawableObjectTest --- src/main/java/inf112/fiasko/roborally/objects/Grid.java | 6 +++--- .../roborally/{ => utility}/TextureConverterUtil.java | 2 +- .../inf112/fiasko/roborally/objects/DrawableObjectTest.java | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) rename src/main/java/inf112/fiasko/roborally/{ => utility}/TextureConverterUtil.java (99%) diff --git a/src/main/java/inf112/fiasko/roborally/objects/Grid.java b/src/main/java/inf112/fiasko/roborally/objects/Grid.java index ed2b71a..38a5982 100644 --- a/src/main/java/inf112/fiasko/roborally/objects/Grid.java +++ b/src/main/java/inf112/fiasko/roborally/objects/Grid.java @@ -9,9 +9,9 @@ import java.util.List; */ public class Grid implements IGrid { - private int height; - private int width; - private List> grid = new ArrayList<>(); + private final int height; + private final int width; + private final List> grid = new ArrayList<>(); /** * Initializes an empty grid diff --git a/src/main/java/inf112/fiasko/roborally/TextureConverterUtil.java b/src/main/java/inf112/fiasko/roborally/utility/TextureConverterUtil.java similarity index 99% rename from src/main/java/inf112/fiasko/roborally/TextureConverterUtil.java rename to src/main/java/inf112/fiasko/roborally/utility/TextureConverterUtil.java index 2f0dc31..798acdb 100644 --- a/src/main/java/inf112/fiasko/roborally/TextureConverterUtil.java +++ b/src/main/java/inf112/fiasko/roborally/utility/TextureConverterUtil.java @@ -1,4 +1,4 @@ -package inf112.fiasko.roborally; +package inf112.fiasko.roborally.utility; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Texture; diff --git a/src/test/java/inf112/fiasko/roborally/objects/DrawableObjectTest.java b/src/test/java/inf112/fiasko/roborally/objects/DrawableObjectTest.java index bc106af..ff6a3fb 100644 --- a/src/test/java/inf112/fiasko/roborally/objects/DrawableObjectTest.java +++ b/src/test/java/inf112/fiasko/roborally/objects/DrawableObjectTest.java @@ -1,6 +1,5 @@ package inf112.fiasko.roborally.objects; -import inf112.fiasko.roborally.objects.DrawableObject; import inf112.fiasko.roborally.element_properties.GameTexture; import org.junit.Before; import org.junit.Test;