From 1ed43dd180404828226b989521e2766f1642b772 Mon Sep 17 00:00:00 2001 From: CyB3RC0nN0R Date: Sun, 20 Oct 2019 17:27:52 +0200 Subject: [PATCH] Created io package, moved IO-related classes --- src/dev/kske/chess/game/Game.java | 4 ++-- src/dev/kske/chess/{ui => io}/EngineUtil.java | 2 +- src/dev/kske/chess/{ui => io}/TextureUtil.java | 2 +- src/dev/kske/chess/ui/BoardComponent.java | 1 + src/dev/kske/chess/ui/DialogUtil.java | 2 ++ src/dev/kske/chess/ui/MenuBar.java | 1 + 6 files changed, 8 insertions(+), 4 deletions(-) rename src/dev/kske/chess/{ui => io}/EngineUtil.java (95%) rename src/dev/kske/chess/{ui => io}/TextureUtil.java (95%) diff --git a/src/dev/kske/chess/game/Game.java b/src/dev/kske/chess/game/Game.java index 13cf92b..feb8781 100644 --- a/src/dev/kske/chess/game/Game.java +++ b/src/dev/kske/chess/game/Game.java @@ -12,10 +12,10 @@ import dev.kske.chess.board.Piece.Color; import dev.kske.chess.event.EventBus; import dev.kske.chess.event.MoveEvent; import dev.kske.chess.game.ai.AIPlayer; +import dev.kske.chess.io.EngineUtil; +import dev.kske.chess.io.EngineUtil.EngineInfo; import dev.kske.chess.ui.BoardComponent; import dev.kske.chess.ui.BoardPane; -import dev.kske.chess.ui.EngineUtil; -import dev.kske.chess.ui.EngineUtil.EngineInfo; import dev.kske.chess.ui.OverlayComponent; /** diff --git a/src/dev/kske/chess/ui/EngineUtil.java b/src/dev/kske/chess/io/EngineUtil.java similarity index 95% rename from src/dev/kske/chess/ui/EngineUtil.java rename to src/dev/kske/chess/io/EngineUtil.java index b56c416..608006e 100644 --- a/src/dev/kske/chess/ui/EngineUtil.java +++ b/src/dev/kske/chess/io/EngineUtil.java @@ -1,4 +1,4 @@ -package dev.kske.chess.ui; +package dev.kske.chess.io; import java.io.FileInputStream; import java.io.FileOutputStream; diff --git a/src/dev/kske/chess/ui/TextureUtil.java b/src/dev/kske/chess/io/TextureUtil.java similarity index 95% rename from src/dev/kske/chess/ui/TextureUtil.java rename to src/dev/kske/chess/io/TextureUtil.java index d7e6910..58fc621 100644 --- a/src/dev/kske/chess/ui/TextureUtil.java +++ b/src/dev/kske/chess/io/TextureUtil.java @@ -1,4 +1,4 @@ -package dev.kske.chess.ui; +package dev.kske.chess.io; import java.awt.Image; import java.awt.image.BufferedImage; diff --git a/src/dev/kske/chess/ui/BoardComponent.java b/src/dev/kske/chess/ui/BoardComponent.java index 09b97d7..802af23 100644 --- a/src/dev/kske/chess/ui/BoardComponent.java +++ b/src/dev/kske/chess/ui/BoardComponent.java @@ -6,6 +6,7 @@ import java.awt.Graphics; import javax.swing.JComponent; import dev.kske.chess.board.Board; +import dev.kske.chess.io.TextureUtil; /** * Project: Chess
diff --git a/src/dev/kske/chess/ui/DialogUtil.java b/src/dev/kske/chess/ui/DialogUtil.java index a25711d..e69f3d7 100644 --- a/src/dev/kske/chess/ui/DialogUtil.java +++ b/src/dev/kske/chess/ui/DialogUtil.java @@ -16,6 +16,8 @@ import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JPanel; +import dev.kske.chess.io.EngineUtil; + /** * Project: Chess
* File: DialogUtil.java
diff --git a/src/dev/kske/chess/ui/MenuBar.java b/src/dev/kske/chess/ui/MenuBar.java index c7c74d0..1d995b1 100644 --- a/src/dev/kske/chess/ui/MenuBar.java +++ b/src/dev/kske/chess/ui/MenuBar.java @@ -14,6 +14,7 @@ import javax.swing.JOptionPane; import dev.kske.chess.board.Board; import dev.kske.chess.game.Game; +import dev.kske.chess.io.EngineUtil; import dev.kske.chess.pgn.PGNDatabase; import dev.kske.chess.pgn.PGNGame;