Optimize imports

Signed-off-by: Chris Cromer <chris@cromer.cl>
This commit is contained in:
Chris Cromer 2019-10-11 12:54:42 -03:00
parent aec9190265
commit 81432f3243
11 changed files with 49 additions and 16 deletions

View File

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

View File

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

View File

@ -17,18 +17,31 @@ package cl.cromer.azaraka;
import cl.cromer.azaraka.ai.AI; import cl.cromer.azaraka.ai.AI;
import cl.cromer.azaraka.ai.State; 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.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.Sound;
import cl.cromer.azaraka.sound.SoundException; import cl.cromer.azaraka.sound.SoundException;
import cl.cromer.azaraka.sprite.Animation; import cl.cromer.azaraka.sprite.Animation;
import cl.cromer.azaraka.sprite.AnimationException; import cl.cromer.azaraka.sprite.AnimationException;
import javax.sound.sampled.Clip; 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.KeyAdapter;
import java.awt.event.KeyEvent; 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; import java.util.logging.Logger;
/** /**

View File

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

View File

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

View File

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

View File

@ -19,8 +19,14 @@ import cl.cromer.azaraka.ai.PlayerAI;
import cl.cromer.azaraka.ai.State; import cl.cromer.azaraka.ai.State;
import cl.cromer.azaraka.json.Json; import cl.cromer.azaraka.json.Json;
import cl.cromer.azaraka.json.JsonCell; 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.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.Sound;
import cl.cromer.azaraka.sound.SoundException; import cl.cromer.azaraka.sound.SoundException;
import cl.cromer.azaraka.sprite.Sheet; 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.Gson;
import com.google.gson.GsonBuilder; import com.google.gson.GsonBuilder;
import javax.swing.*; import javax.swing.JComponent;
import java.awt.*; import java.awt.Graphics;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;

View File

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

View File

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

View File

@ -17,7 +17,13 @@ package cl.cromer.azaraka.sound;
import cl.cromer.azaraka.Constants; 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.BufferedInputStream;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;

View File

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