Clear code, delete not useful class

This commit is contained in:
iryupnik 2020-03-14 11:55:18 +01:00
parent 42df08befc
commit ff4f6036a0
7 changed files with 1 additions and 32 deletions

View File

@ -1,18 +1,10 @@
import ruscz.game.gameOfProd.Map.MapManager;
import ruscz.game.gameOfProd.Windows.WindowOfFreeMove;
public class Game {
private MapManager mm;
public static void main(String[] args) {
WindowOfFreeMove window = new WindowOfFreeMove();
Game game = new Game();
game.setMapManager(window);
window.start();
}
private void setMapManager(WindowOfFreeMove window) {
mm = new MapManager(window);
}
}

View File

@ -26,7 +26,7 @@ public class Block extends Cell {
public void paint(Graphics2D g) {
super.paint(g);
g.fillOval(getX() * WindowOfFreeMove.CELL_SIZE, getY() * WindowOfFreeMove.CELL_SIZE, WindowOfFreeMove.CELL_SIZE, WindowOfFreeMove.CELL_SIZE);
g.drawImage(imageCell.getImagesOfTiles().get(102), getX() * WindowOfFreeMove.CELL_SIZE,
g.drawImage(imageCell.getImagesOfTiles().get(120), getX() * WindowOfFreeMove.CELL_SIZE,
getY() * WindowOfFreeMove.CELL_SIZE, WindowOfFreeMove.CELL_SIZE, WindowOfFreeMove.CELL_SIZE, null);
}
}

View File

@ -1,7 +1,6 @@
package ruscz.game.gameOfProd.Dialog;
import ruscz.game.gameOfProd.Image.ImageDialog;
import ruscz.game.gameOfProd.Windows.WindowOfFreeMove;
import javax.swing.*;
import java.awt.*;

View File

@ -3,7 +3,6 @@ package ruscz.game.gameOfProd.Image;
import ruscz.game.gameOfProd.Windows.WindowOfFreeMove;
import javax.imageio.ImageIO;
import javax.print.DocFlavor;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;

View File

@ -1,7 +1,6 @@
package ruscz.game.gameOfProd.Image;
import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.*;
import java.awt.image.*;
import java.io.File;

View File

@ -2,7 +2,6 @@ package ruscz.game.gameOfProd.Map;
import ruscz.game.gameOfProd.Cells.*;
import ruscz.game.gameOfProd.Image.ImageCell;
import ruscz.game.gameOfProd.Windows.WindowOfFreeMove;
import java.util.LinkedList;

View File

@ -1,19 +0,0 @@
package ruscz.game.gameOfProd.Map;
import ruscz.game.gameOfProd.Map.Map;
import ruscz.game.gameOfProd.Windows.WindowOfFreeMove;
import java.util.LinkedList;
public class MapManager {
WindowOfFreeMove window;
LinkedList<Map> maps;
Map actualMap;
public MapManager(WindowOfFreeMove window){
this.window = window;
}
}