Browse Source

Optimize imports

Signed-off-by: Chris Cromer <chris@cromer.cl>
master
Chris Cromer 2 years ago
parent
commit
81432f3243
  1. 5
      .idea/codeStyles/codeStyleConfig.xml
  2. 2
      src/main/java/cl/cromer/azaraka/Azaraka.java
  3. 19
      src/main/java/cl/cromer/azaraka/Canvas.java
  4. 4
      src/main/java/cl/cromer/azaraka/Cell.java
  5. 2
      src/main/java/cl/cromer/azaraka/Constants.java
  6. 6
      src/main/java/cl/cromer/azaraka/MainWindow.java
  7. 12
      src/main/java/cl/cromer/azaraka/Scene.java
  8. 2
      src/main/java/cl/cromer/azaraka/ai/BreadthFirstSearch.java
  9. 2
      src/main/java/cl/cromer/azaraka/object/Object.java
  10. 8
      src/main/java/cl/cromer/azaraka/sound/Sound.java
  11. 3
      src/main/java/cl/cromer/azaraka/sprite/Animation.java

5
.idea/codeStyles/codeStyleConfig.xml

@ -0,0 +1,5 @@
<component name="ProjectCodeStyleConfiguration">
<state>
<option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
</state>
</component>

2
src/main/java/cl/cromer/azaraka/Azaraka.java

@ -15,7 +15,7 @@
package cl.cromer.azaraka;
import javax.swing.*;
import javax.swing.JFrame;
import java.util.logging.Logger;
/**

19
src/main/java/cl/cromer/azaraka/Canvas.java

@ -17,18 +17,31 @@ package cl.cromer.azaraka;
import cl.cromer.azaraka.ai.AI;
import cl.cromer.azaraka.ai.State;
import cl.cromer.azaraka.object.Chest;
import cl.cromer.azaraka.object.Enemy;
import cl.cromer.azaraka.object.Gem;
import cl.cromer.azaraka.object.Key;
import cl.cromer.azaraka.object.Object;
import cl.cromer.azaraka.object.*;
import cl.cromer.azaraka.object.Player;
import cl.cromer.azaraka.object.Portal;
import cl.cromer.azaraka.sound.Sound;
import cl.cromer.azaraka.sound.SoundException;
import cl.cromer.azaraka.sprite.Animation;
import cl.cromer.azaraka.sprite.AnimationException;
import javax.sound.sampled.Clip;
import java.awt.*;
import java.awt.Color;
import java.awt.FontMetrics;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Rectangle;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.util.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;
import java.util.logging.Logger;
/**

4
src/main/java/cl/cromer/azaraka/Cell.java

@ -17,8 +17,8 @@ package cl.cromer.azaraka;
import cl.cromer.azaraka.object.Object;
import javax.swing.*;
import java.awt.*;
import javax.swing.JComponent;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.util.ArrayList;
import java.util.LinkedHashMap;

2
src/main/java/cl/cromer/azaraka/Constants.java

@ -17,7 +17,7 @@ package cl.cromer.azaraka;
import cl.cromer.azaraka.logging.HtmlFormatter;
import java.awt.*;
import java.awt.Font;
import java.io.File;
import java.io.IOException;
import java.util.Random;

6
src/main/java/cl/cromer/azaraka/MainWindow.java

@ -16,8 +16,10 @@
package cl.cromer.azaraka;
import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.*;
import javax.swing.JFrame;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.util.logging.Logger;

12
src/main/java/cl/cromer/azaraka/Scene.java

@ -19,8 +19,14 @@ import cl.cromer.azaraka.ai.PlayerAI;
import cl.cromer.azaraka.ai.State;
import cl.cromer.azaraka.json.Json;
import cl.cromer.azaraka.json.JsonCell;
import cl.cromer.azaraka.object.Chest;
import cl.cromer.azaraka.object.Enemy;
import cl.cromer.azaraka.object.Gem;
import cl.cromer.azaraka.object.Key;
import cl.cromer.azaraka.object.Object;
import cl.cromer.azaraka.object.*;
import cl.cromer.azaraka.object.Obstacle;
import cl.cromer.azaraka.object.Player;
import cl.cromer.azaraka.object.Portal;
import cl.cromer.azaraka.sound.Sound;
import cl.cromer.azaraka.sound.SoundException;
import cl.cromer.azaraka.sprite.Sheet;
@ -28,8 +34,8 @@ import cl.cromer.azaraka.sprite.SheetException;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import javax.swing.*;
import java.awt.*;
import javax.swing.JComponent;
import java.awt.Graphics;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;

2
src/main/java/cl/cromer/azaraka/ai/BreadthFirstSearch.java

@ -54,7 +54,7 @@ public class BreadthFirstSearch extends AI {
/**
* Initialize the algorithm
*/
public BreadthFirstSearch() {
protected BreadthFirstSearch() {
}
/**

2
src/main/java/cl/cromer/azaraka/object/Object.java

@ -23,7 +23,7 @@ import cl.cromer.azaraka.sprite.AnimationException;
import cl.cromer.azaraka.sprite.Sheet;
import cl.cromer.azaraka.sprite.SheetException;
import java.awt.*;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.util.logging.Logger;

8
src/main/java/cl/cromer/azaraka/sound/Sound.java

@ -17,7 +17,13 @@ package cl.cromer.azaraka.sound;
import cl.cromer.azaraka.Constants;
import javax.sound.sampled.*;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Clip;
import javax.sound.sampled.DataLine;
import javax.sound.sampled.FloatControl;
import javax.sound.sampled.LineUnavailableException;
import javax.sound.sampled.UnsupportedAudioFileException;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;

3
src/main/java/cl/cromer/azaraka/sprite/Animation.java

@ -18,7 +18,8 @@ package cl.cromer.azaraka.sprite;
import cl.cromer.azaraka.Constants;
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.util.ArrayList;

Loading…
Cancel
Save