Classe Tower Optimisé
This commit is contained in:
@@ -61,10 +61,10 @@ public class BoardLoader {
|
||||
|
||||
switch (value) {
|
||||
case 1:
|
||||
grid[row][col] = new Tower(Color.YELLOW);
|
||||
grid[row][col] = Tower.createTower(Color.YELLOW);
|
||||
break;
|
||||
case 2:
|
||||
grid[row][col] = new Tower(Color.RED);
|
||||
grid[row][col] = Tower.createTower(Color.RED);
|
||||
break;
|
||||
default:
|
||||
grid[row][col] = null;
|
||||
|
||||
Reference in New Issue
Block a user