Clear code, delete not useful class
This commit is contained in:
parent
42df08befc
commit
ff4f6036a0
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
@ -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.*;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user