Changed name of Gui to GameGui
parent
40b50ac12f
commit
ddac012fd9
|
@ -11,15 +11,15 @@ import javax.swing.BorderFactory;
|
|||
import de.hs_mannheim.informatik.chess.model.ChessEngine;
|
||||
import de.hs_mannheim.informatik.chess.model.MoveDTO;
|
||||
import de.hs_mannheim.informatik.chess.model.BoardDTO;
|
||||
import de.hs_mannheim.informatik.chess.view.Gui;
|
||||
import de.hs_mannheim.informatik.chess.view.GameGui;
|
||||
|
||||
public class Controller {
|
||||
Gui gui;
|
||||
GameGui gui;
|
||||
ChessEngine engine;
|
||||
private int selectedRow = -1, selectedCol = -1;
|
||||
private List<int[]> highlightedFields = new ArrayList<>();
|
||||
|
||||
public Controller(Gui gui, ChessEngine engine) {
|
||||
public Controller(GameGui gui, ChessEngine engine) {
|
||||
this.gui = gui;
|
||||
this.engine = engine;
|
||||
initListeners();
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
package de.hs_mannheim.informatik.chess.main;
|
||||
import de.hs_mannheim.informatik.chess.controller.Controller;
|
||||
import de.hs_mannheim.informatik.chess.model.ChessEngine;
|
||||
import de.hs_mannheim.informatik.chess.view.Gui;
|
||||
import de.hs_mannheim.informatik.chess.view.GameGui;
|
||||
|
||||
|
||||
public class Main{
|
||||
|
||||
public static void main( String[] args ){
|
||||
Gui gui = new Gui();
|
||||
GameGui gui = new GameGui();
|
||||
ChessEngine engine = new ChessEngine();
|
||||
new Controller(gui, engine);
|
||||
|
||||
|
|
|
@ -17,11 +17,11 @@ import javax.swing.SwingConstants;
|
|||
import de.hs_mannheim.informatik.chess.model.BoardDTO;
|
||||
import de.hs_mannheim.informatik.chess.model.PieceDTO;
|
||||
|
||||
public class Gui {
|
||||
public class GameGui {
|
||||
|
||||
private JLabel[][] fields = new JLabel[8][8];
|
||||
|
||||
public Gui(){
|
||||
public GameGui(){
|
||||
mainFrame();
|
||||
}
|
||||
|
Loading…
Reference in New Issue