From 627c788d0588558e2213f3a7352be87ef1f7b29c Mon Sep 17 00:00:00 2001 From: Nic0Nic0Nii Date: Mon, 6 Jun 2022 20:17:31 +0000 Subject: [PATCH] Remove unused imports and correct warnings Co-authored-by: r3cp3ct <45179536+r3cp3ct@users.noreply.github.com> Co-authored-by: sigonasr2 --- src/sig/RabiClone.java | 1 - src/sig/map/Tile.java | 2 -- src/sig/objects/EditorRenderer.java | 5 ++--- src/sig/objects/Player.java | 5 ++++- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/sig/RabiClone.java b/src/sig/RabiClone.java index 88de32a..91b8119 100644 --- a/src/sig/RabiClone.java +++ b/src/sig/RabiClone.java @@ -5,7 +5,6 @@ import javax.swing.JFrame; import net.java.games.input.Component; import net.java.games.input.Controller; import net.java.games.input.ControllerEnvironment; -import net.java.games.input.Component.Identifier; import java.util.ArrayList; import java.util.List; diff --git a/src/sig/map/Tile.java b/src/sig/map/Tile.java index a06ac4f..bd61876 100644 --- a/src/sig/map/Tile.java +++ b/src/sig/map/Tile.java @@ -1,7 +1,5 @@ package sig.map; -import sig.RabiClone; - public enum Tile { VOID(0,0,true,CollisionType.NONE), //File is populated by 0s by default. This represents the void. WALL(0,0,CollisionType.BLOCK), diff --git a/src/sig/objects/EditorRenderer.java b/src/sig/objects/EditorRenderer.java index f931f01..613bfb7 100644 --- a/src/sig/objects/EditorRenderer.java +++ b/src/sig/objects/EditorRenderer.java @@ -10,7 +10,6 @@ import sig.engine.Font; import sig.engine.MouseScrollValue; import sig.engine.PaletteColor; import sig.engine.Panel; -import sig.engine.Sprite; import sig.map.Background; import sig.map.Map; import sig.map.Tile; @@ -61,8 +60,8 @@ public class EditorRenderer extends LevelRenderer{ setY(Math.max(0,getY()+(down-up)*CAMERA_SPD*updateMult)); } boolean left_mb = MouseHeld(MouseEvent.BUTTON1); - boolean middle_mb = MouseHeld(MouseEvent.BUTTON2); - boolean right_mb = MouseHeld(MouseEvent.BUTTON3); + // boolean middle_mb = MouseHeld(MouseEvent.BUTTON2); + // boolean right_mb = MouseHeld(MouseEvent.BUTTON3); if(left_mb){ int tileX = (int)(RabiClone.MOUSE_POS.getX()+getX())/Tile.TILE_WIDTH; diff --git a/src/sig/objects/Player.java b/src/sig/objects/Player.java index 9b9714f..791f68e 100644 --- a/src/sig/objects/Player.java +++ b/src/sig/objects/Player.java @@ -2,7 +2,6 @@ package sig.objects; import sig.RabiClone; import sig.engine.AnimatedObject; -import sig.engine.Object; import sig.engine.Panel; import sig.engine.Sprite; import sig.map.CollisionType; @@ -308,6 +307,10 @@ public class Player extends AnimatedObject{ } } break; + case FIXED: + break; + default: + break; } RabiClone.level_renderer.setX(newX<0?0:newX); RabiClone.level_renderer.setY(newY<0?0:newY);