diff --git a/.idea/dictionaries/cromer.xml b/.idea/dictionaries/cromer.xml index 7015fa7..37abcfc 100644 --- a/.idea/dictionaries/cromer.xml +++ b/.idea/dictionaries/cromer.xml @@ -1,6 +1,7 @@ + appname aventura azaraka celda @@ -9,6 +10,9 @@ cellspacing constantes cromer + dorg + endlocal + errorlevel escenario gameover ganaste diff --git a/src/main/java/cl/cromer/azaraka/Celda.java b/src/main/java/cl/cromer/azaraka/Celda.java index e4d704f..ff9a2ba 100644 --- a/src/main/java/cl/cromer/azaraka/Celda.java +++ b/src/main/java/cl/cromer/azaraka/Celda.java @@ -94,15 +94,6 @@ public class Celda extends JComponent implements Constantes { this.object = object; } - /** - * Get the top object - * - * @return Returns the top object - */ - public Object getObjectOnTop() { - return objectOnTop; - } - /** * Set a top object * diff --git a/src/main/java/cl/cromer/azaraka/object/Gem.java b/src/main/java/cl/cromer/azaraka/object/Gem.java index 185f38f..a02ae6e 100644 --- a/src/main/java/cl/cromer/azaraka/object/Gem.java +++ b/src/main/java/cl/cromer/azaraka/object/Gem.java @@ -24,10 +24,6 @@ import cl.cromer.azaraka.sprite.AnimationException; * This class contains the gem */ public class Gem extends Object { - /** - * The type of gem - */ - private Type type = null; /** * The current state of the gem */ @@ -92,7 +88,6 @@ public class Gem extends Object { * @param type The type of gem */ public void setType(Type type) { - this.type = type; loadGemAnimation(type); } diff --git a/src/main/java/cl/cromer/azaraka/object/Object.java b/src/main/java/cl/cromer/azaraka/object/Object.java index 2161cef..8d47412 100644 --- a/src/main/java/cl/cromer/azaraka/object/Object.java +++ b/src/main/java/cl/cromer/azaraka/object/Object.java @@ -126,7 +126,7 @@ public class Object implements Runnable, Constantes { * * @param x The amount of pixels to scale */ - public void setXScale(int x) { + protected void setXScale(@SuppressWarnings("SameParameterValue") int x) { this.xScale = x; } @@ -135,7 +135,7 @@ public class Object implements Runnable, Constantes { * * @param y The amount of pixels to scale */ - public void setYScale(int y) { + protected void setYScale(@SuppressWarnings("SameParameterValue") int y) { this.yScale = y; } diff --git a/src/main/java/cl/cromer/azaraka/object/Portal.java b/src/main/java/cl/cromer/azaraka/object/Portal.java index 1ea4f54..bde231d 100644 --- a/src/main/java/cl/cromer/azaraka/object/Portal.java +++ b/src/main/java/cl/cromer/azaraka/object/Portal.java @@ -109,15 +109,6 @@ public class Portal extends Object implements Constantes { } } - /** - * Get the current status of the portal - * - * @return Returns the status - */ - public State getState() { - return state; - } - /** * Sets a new status for the portal *