Remove useless dependencies
This commit is contained in:
parent
a6581cd37e
commit
d607149097
|
@ -1,18 +1,12 @@
|
||||||
package fr.ynerant.leveleditor.frame;
|
package fr.ynerant.leveleditor.frame;
|
||||||
|
|
||||||
import fr.ynerant.leveleditor.api.editor.EditorAPI;
|
|
||||||
import fr.ynerant.leveleditor.client.main.Main;
|
import fr.ynerant.leveleditor.client.main.Main;
|
||||||
import fr.ynerant.leveleditor.editor.EditorFrame;
|
|
||||||
import fr.ynerant.leveleditor.frame.listeners.ChangeLAFListener;
|
import fr.ynerant.leveleditor.frame.listeners.ChangeLAFListener;
|
||||||
import fr.ynerant.leveleditor.frame.listeners.CreateMapListener;
|
import fr.ynerant.leveleditor.frame.listeners.CreateMapListener;
|
||||||
import fr.ynerant.leveleditor.frame.listeners.OpenMapListener;
|
import fr.ynerant.leveleditor.frame.listeners.OpenMapListener;
|
||||||
import org.apache.logging.log4j.LogManager;
|
|
||||||
import org.apache.logging.log4j.core.Logger;
|
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
import java.awt.event.ActionEvent;
|
|
||||||
import java.awt.event.ActionListener;
|
|
||||||
import java.awt.event.KeyEvent;
|
import java.awt.event.KeyEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -34,13 +28,6 @@ public class MainFrame extends JFrame {
|
||||||
*/
|
*/
|
||||||
private static MainFrame INSTANCE;
|
private static MainFrame INSTANCE;
|
||||||
|
|
||||||
/**
|
|
||||||
* Logger de la classe
|
|
||||||
*
|
|
||||||
* @see LogManager#getLogger(String)
|
|
||||||
*/
|
|
||||||
private static final Logger LOGGER = (Logger) LogManager.getLogger("MainFrame");
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructeur
|
* Constructeur
|
||||||
*
|
*
|
||||||
|
@ -49,7 +36,7 @@ public class MainFrame extends JFrame {
|
||||||
@SuppressWarnings("JavadocReference")
|
@SuppressWarnings("JavadocReference")
|
||||||
private MainFrame() {
|
private MainFrame() {
|
||||||
super();
|
super();
|
||||||
LOGGER.info("Initialisation de la fen\u00eatre");
|
System.out.println("Initialisation de la fen\u00eatre");
|
||||||
this.setTitle("Level Editor");
|
this.setTitle("Level Editor");
|
||||||
this.setPreferredSize(new Dimension(1000, 800));
|
this.setPreferredSize(new Dimension(1000, 800));
|
||||||
this.setSize(800, 700);
|
this.setSize(800, 700);
|
||||||
|
@ -92,12 +79,9 @@ public class MainFrame extends JFrame {
|
||||||
this.setJMenuBar(menuBar);
|
this.setJMenuBar(menuBar);
|
||||||
|
|
||||||
JButton start = new JButton("Commencer la partie !");
|
JButton start = new JButton("Commencer la partie !");
|
||||||
start.addActionListener(new ActionListener() {
|
start.addActionListener(actionEvent -> {
|
||||||
@Override
|
if (Main.launchGameMode())
|
||||||
public void actionPerformed(ActionEvent actionEvent) {
|
getInstance().dispose();
|
||||||
if (Main.launchGameMode())
|
|
||||||
getInstance().dispose();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
this.setContentPane(start);
|
this.setContentPane(start);
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,15 +27,17 @@ public class GameFrame extends JFrame {
|
||||||
private int round = 0;
|
private int round = 0;
|
||||||
private int hp = 5;
|
private int hp = 5;
|
||||||
private int reward = 20;
|
private int reward = 20;
|
||||||
private List<Mob> mobs = new ArrayList<>();
|
private final List<Mob> mobs = new ArrayList<>();
|
||||||
private List<Tower> towers = new ArrayList<>();
|
private final List<Tower> towers = new ArrayList<>();
|
||||||
|
|
||||||
private JRadioButton basicTower, nullTower, autoTower;
|
private final JRadioButton basicTower;
|
||||||
private JLabel waveLabel;
|
private final JRadioButton nullTower;
|
||||||
private JLabel nbMobsLabel;
|
private final JRadioButton autoTower;
|
||||||
private JLabel hpLabel;
|
private final JLabel waveLabel;
|
||||||
private JLabel rewardLabel;
|
private final JLabel nbMobsLabel;
|
||||||
private JLabel winLabel;
|
private final JLabel hpLabel;
|
||||||
|
private final JLabel rewardLabel;
|
||||||
|
private final JLabel winLabel;
|
||||||
|
|
||||||
public GameFrame(RawMap map) {
|
public GameFrame(RawMap map) {
|
||||||
super("Jeu");
|
super("Jeu");
|
||||||
|
|
|
@ -9,7 +9,7 @@ import java.util.Collection;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
public abstract class Tower {
|
public abstract class Tower {
|
||||||
private Sprite sprite;
|
private final Sprite sprite;
|
||||||
private final int x;
|
private final int x;
|
||||||
private final int y;
|
private final int y;
|
||||||
private long remainingTicks;
|
private long remainingTicks;
|
||||||
|
|
|
@ -1,33 +0,0 @@
|
||||||
package fr.ynerant.leveleditor;
|
|
||||||
|
|
||||||
import junit.framework.Test;
|
|
||||||
import junit.framework.TestCase;
|
|
||||||
import junit.framework.TestSuite;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Unit test for simple App.
|
|
||||||
*/
|
|
||||||
public class AppTest extends TestCase {
|
|
||||||
/**
|
|
||||||
* Create the test case
|
|
||||||
*
|
|
||||||
* @param testName name of the test case
|
|
||||||
*/
|
|
||||||
public AppTest(String testName) {
|
|
||||||
super(testName);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return the suite of tests being tested
|
|
||||||
*/
|
|
||||||
public static Test suite() {
|
|
||||||
return new TestSuite(AppTest.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Rigourous Test :-)
|
|
||||||
*/
|
|
||||||
public void testApp() {
|
|
||||||
assertTrue(true);
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue