Optimize code
Signed-off-by: Chris Cromer <chris@cromer.cl>
This commit is contained in:
parent
e39f52d041
commit
e0bc99a095
@ -1,6 +1,7 @@
|
|||||||
<component name="ProjectDictionaryState">
|
<component name="ProjectDictionaryState">
|
||||||
<dictionary name="cromer">
|
<dictionary name="cromer">
|
||||||
<words>
|
<words>
|
||||||
|
<w>appname</w>
|
||||||
<w>aventura</w>
|
<w>aventura</w>
|
||||||
<w>azaraka</w>
|
<w>azaraka</w>
|
||||||
<w>celda</w>
|
<w>celda</w>
|
||||||
@ -9,6 +10,9 @@
|
|||||||
<w>cellspacing</w>
|
<w>cellspacing</w>
|
||||||
<w>constantes</w>
|
<w>constantes</w>
|
||||||
<w>cromer</w>
|
<w>cromer</w>
|
||||||
|
<w>dorg</w>
|
||||||
|
<w>endlocal</w>
|
||||||
|
<w>errorlevel</w>
|
||||||
<w>escenario</w>
|
<w>escenario</w>
|
||||||
<w>gameover</w>
|
<w>gameover</w>
|
||||||
<w>ganaste</w>
|
<w>ganaste</w>
|
||||||
|
@ -94,15 +94,6 @@ public class Celda extends JComponent implements Constantes {
|
|||||||
this.object = object;
|
this.object = object;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the top object
|
|
||||||
*
|
|
||||||
* @return Returns the top object
|
|
||||||
*/
|
|
||||||
public Object getObjectOnTop() {
|
|
||||||
return objectOnTop;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set a top object
|
* Set a top object
|
||||||
*
|
*
|
||||||
|
@ -24,10 +24,6 @@ import cl.cromer.azaraka.sprite.AnimationException;
|
|||||||
* This class contains the gem
|
* This class contains the gem
|
||||||
*/
|
*/
|
||||||
public class Gem extends Object {
|
public class Gem extends Object {
|
||||||
/**
|
|
||||||
* The type of gem
|
|
||||||
*/
|
|
||||||
private Type type = null;
|
|
||||||
/**
|
/**
|
||||||
* The current state of the gem
|
* The current state of the gem
|
||||||
*/
|
*/
|
||||||
@ -92,7 +88,6 @@ public class Gem extends Object {
|
|||||||
* @param type The type of gem
|
* @param type The type of gem
|
||||||
*/
|
*/
|
||||||
public void setType(Type type) {
|
public void setType(Type type) {
|
||||||
this.type = type;
|
|
||||||
loadGemAnimation(type);
|
loadGemAnimation(type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ public class Object implements Runnable, Constantes {
|
|||||||
*
|
*
|
||||||
* @param x The amount of pixels to scale
|
* @param x The amount of pixels to scale
|
||||||
*/
|
*/
|
||||||
public void setXScale(int x) {
|
protected void setXScale(@SuppressWarnings("SameParameterValue") int x) {
|
||||||
this.xScale = x;
|
this.xScale = x;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -135,7 +135,7 @@ public class Object implements Runnable, Constantes {
|
|||||||
*
|
*
|
||||||
* @param y The amount of pixels to scale
|
* @param y The amount of pixels to scale
|
||||||
*/
|
*/
|
||||||
public void setYScale(int y) {
|
protected void setYScale(@SuppressWarnings("SameParameterValue") int y) {
|
||||||
this.yScale = y;
|
this.yScale = y;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
* Sets a new status for the portal
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user