diff --git a/.idea/dictionaries/cromer.xml b/.idea/dictionaries/cromer.xml
index 6476eae..7015fa7 100644
--- a/.idea/dictionaries/cromer.xml
+++ b/.idea/dictionaries/cromer.xml
@@ -1,7 +1,19 @@
+ aventura
+ azaraka
+ celda
+ celdas
+ cellpadding
+ cellspacing
+ constantescromer
+ escenario
+ gameover
+ ganaste
+ lienzo
+ ventana
\ No newline at end of file
diff --git a/src/cl/cromer/azaraka/Celda.java b/src/cl/cromer/azaraka/Celda.java
index aa0af86..7377c9f 100644
--- a/src/cl/cromer/azaraka/Celda.java
+++ b/src/cl/cromer/azaraka/Celda.java
@@ -29,27 +29,27 @@ public class Celda extends JComponent implements Constantes {
/**
* The x graphical coordinate of the cell
*/
- private int xPixels;
+ private final int xPixels;
/**
* The y graphical coordinate of the cell
*/
- private int yPixels;
+ private final int yPixels;
/**
* The x coordinate of the cell
*/
- private int x;
+ private final int x;
/**
* The y coordinate of the cell
*/
- private int y;
+ private final int y;
/**
* The textures to show in this cell
*/
- private ArrayList textures = new ArrayList<>();
+ private final ArrayList textures = new ArrayList<>();
/**
* The texture numbers
*/
- private ArrayList textureNumbers = new ArrayList<>();
+ private final ArrayList textureNumbers = new ArrayList<>();
/**
* The object in the cell
*/
diff --git a/src/cl/cromer/azaraka/Constantes.java b/src/cl/cromer/azaraka/Constantes.java
index f3aa785..cd8bb57 100644
--- a/src/cl/cromer/azaraka/Constantes.java
+++ b/src/cl/cromer/azaraka/Constantes.java
@@ -202,25 +202,25 @@ public interface Constantes {
*/
enum LogLevel {
GLOBAL(Level.WARNING),
- MAIN(Level.WARNING),
- VENTANA_PRINCIPAL(Level.WARNING),
- LIENZO(Level.WARNING),
- ESCENARIO(Level.WARNING),
+ MAIN(Level.INFO),
+ VENTANA_PRINCIPAL(Level.INFO),
+ LIENZO(Level.INFO),
+ ESCENARIO(Level.INFO),
PLAYER(Level.WARNING),
ENEMY(Level.WARNING),
- CHEST(Level.WARNING),
- CONFIG(Level.WARNING),
- SOUND(Level.WARNING),
- ANIMATION(Level.WARNING),
- SHEET(Level.WARNING),
- KEY(Level.WARNING),
- JSON(Level.WARNING),
- PORTAL(Level.WARNING);
+ CHEST(Level.INFO),
+ CONFIG(Level.INFO),
+ SOUND(Level.INFO),
+ ANIMATION(Level.INFO),
+ SHEET(Level.INFO),
+ KEY(Level.INFO),
+ JSON(Level.INFO),
+ PORTAL(Level.INFO);
/**
* The level of log for the enum
*/
- private Level level;
+ private final Level level;
/**
* Initialize the log level enum
@@ -236,7 +236,7 @@ public interface Constantes {
*
* @return Returns the level
*/
- public Level getLevel() {
+ protected Level getLevel() {
return this.level;
}
}
diff --git a/src/cl/cromer/azaraka/Escenario.java b/src/cl/cromer/azaraka/Escenario.java
index 91d7989..1088238 100644
--- a/src/cl/cromer/azaraka/Escenario.java
+++ b/src/cl/cromer/azaraka/Escenario.java
@@ -42,19 +42,19 @@ public class Escenario extends JComponent implements Constantes {
/**
* The width of the scene
*/
- protected int width = CELL_PIXELS * HORIZONTAL_CELLS;
+ protected final int width = CELL_PIXELS * HORIZONTAL_CELLS;
/**
* The height of the scene
*/
- protected int height = CELL_PIXELS * VERTICAL_CELLS;
+ protected final int height = CELL_PIXELS * VERTICAL_CELLS;
/**
* The canvas
*/
- private Lienzo canvas;
+ private final Lienzo canvas;
/**
* The cells of the game
*/
- private Celda[][] celdas;
+ private final Celda[][] celdas;
/**
* A collection of tiles that can be used in the scene
*/
@@ -66,7 +66,7 @@ public class Escenario extends JComponent implements Constantes {
/**
* The logger
*/
- private Logger logger;
+ private final Logger logger;
/**
* Initialize the scene
diff --git a/src/cl/cromer/azaraka/Lienzo.java b/src/cl/cromer/azaraka/Lienzo.java
index a631829..0906a9b 100644
--- a/src/cl/cromer/azaraka/Lienzo.java
+++ b/src/cl/cromer/azaraka/Lienzo.java
@@ -39,7 +39,7 @@ public class Lienzo extends Canvas implements Constantes {
/**
* The game scene
*/
- private Escenario escenario;
+ private final Escenario escenario;
/**
* The graphics buffer
*/
@@ -51,7 +51,7 @@ public class Lienzo extends Canvas implements Constantes {
/**
* The threads for the objects
*/
- private HashMap