From 4ac571ad09a0204c0ddf2656190377566c38008f Mon Sep 17 00:00:00 2001 From: Katchan Date: Thu, 28 Oct 2021 23:23:10 +0200 Subject: [PATCH] Optimize import --- .../main/java/fr/lnl/game/server/games/action/DropBomb.java | 1 - .../main/java/fr/lnl/game/server/games/action/DropMine.java | 1 - .../main/java/fr/lnl/game/server/games/action/DropObject.java | 3 --- .../src/main/java/fr/lnl/game/server/games/action/Move.java | 4 +++- .../src/main/java/fr/lnl/game/server/games/action/Shot.java | 3 --- 5 files changed, 3 insertions(+), 9 deletions(-) diff --git a/server/src/main/java/fr/lnl/game/server/games/action/DropBomb.java b/server/src/main/java/fr/lnl/game/server/games/action/DropBomb.java index 715d3e1..d3fd35b 100644 --- a/server/src/main/java/fr/lnl/game/server/games/action/DropBomb.java +++ b/server/src/main/java/fr/lnl/game/server/games/action/DropBomb.java @@ -6,7 +6,6 @@ import fr.lnl.game.server.games.player.Player; import fr.lnl.game.server.utils.Point; import java.util.List; -import java.util.Random; public class DropBomb extends DropObject { diff --git a/server/src/main/java/fr/lnl/game/server/games/action/DropMine.java b/server/src/main/java/fr/lnl/game/server/games/action/DropMine.java index 6937270..c299649 100644 --- a/server/src/main/java/fr/lnl/game/server/games/action/DropMine.java +++ b/server/src/main/java/fr/lnl/game/server/games/action/DropMine.java @@ -6,7 +6,6 @@ import fr.lnl.game.server.games.player.Player; import fr.lnl.game.server.utils.Point; import java.util.List; -import java.util.Random; public class DropMine extends DropObject { public DropMine(Game game){ diff --git a/server/src/main/java/fr/lnl/game/server/games/action/DropObject.java b/server/src/main/java/fr/lnl/game/server/games/action/DropObject.java index 9d626ce..35e2a55 100644 --- a/server/src/main/java/fr/lnl/game/server/games/action/DropObject.java +++ b/server/src/main/java/fr/lnl/game/server/games/action/DropObject.java @@ -2,15 +2,12 @@ package fr.lnl.game.server.games.action; import fr.lnl.game.server.games.Game; import fr.lnl.game.server.games.grid.Box; -import fr.lnl.game.server.games.grid.Grid; -import fr.lnl.game.server.games.grid.Wall; import fr.lnl.game.server.games.player.Player; import fr.lnl.game.server.utils.Pair; import fr.lnl.game.server.utils.Point; import java.util.ArrayList; import java.util.HashMap; -import java.util.LinkedList; import java.util.List; public abstract class DropObject extends AbstractAction { diff --git a/server/src/main/java/fr/lnl/game/server/games/action/Move.java b/server/src/main/java/fr/lnl/game/server/games/action/Move.java index 275948e..2f725cc 100644 --- a/server/src/main/java/fr/lnl/game/server/games/action/Move.java +++ b/server/src/main/java/fr/lnl/game/server/games/action/Move.java @@ -6,7 +6,9 @@ import fr.lnl.game.server.games.player.Player; import fr.lnl.game.server.utils.Pair; import fr.lnl.game.server.utils.Point; -import java.util.*; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; public class Move extends AbstractAction { public Move(Game game) { diff --git a/server/src/main/java/fr/lnl/game/server/games/action/Shot.java b/server/src/main/java/fr/lnl/game/server/games/action/Shot.java index 5ceab86..4d31eba 100644 --- a/server/src/main/java/fr/lnl/game/server/games/action/Shot.java +++ b/server/src/main/java/fr/lnl/game/server/games/action/Shot.java @@ -1,15 +1,12 @@ package fr.lnl.game.server.games.action; import fr.lnl.game.server.games.Game; -import fr.lnl.game.server.games.grid.Box; import fr.lnl.game.server.games.grid.Wall; import fr.lnl.game.server.games.player.Player; import fr.lnl.game.server.games.weapon.Weapon; -import fr.lnl.game.server.utils.Pair; import fr.lnl.game.server.utils.Point; import java.util.ArrayList; -import java.util.HashMap; import java.util.List; public class Shot extends AbstractAction {