diff --git a/src/dev/kske/chess/board/Bishop.java b/src/dev/kske/chess/board/Bishop.java
index 8f2cb9d..4b2d8b0 100644
--- a/src/dev/kske/chess/board/Bishop.java
+++ b/src/dev/kske/chess/board/Bishop.java
@@ -7,7 +7,9 @@ import java.util.List;
* Project: Chess
* File: Bishop.java
* Created: 01.07.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.1-alpha
+ * @author Kai S. K. Engelbart
*/
public class Bishop extends Piece {
diff --git a/src/dev/kske/chess/board/Board.java b/src/dev/kske/chess/board/Board.java
index fbab10d..93fa907 100644
--- a/src/dev/kske/chess/board/Board.java
+++ b/src/dev/kske/chess/board/Board.java
@@ -16,7 +16,9 @@ import dev.kske.chess.board.Piece.Type;
* Project: Chess
* File: Board.java
* Created: 01.07.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.1-alpha
+ * @author Kai S. K. Engelbart
*/
public class Board {
diff --git a/src/dev/kske/chess/board/FENString.java b/src/dev/kske/chess/board/FENString.java
index 536cecf..0dbb3e5 100644
--- a/src/dev/kske/chess/board/FENString.java
+++ b/src/dev/kske/chess/board/FENString.java
@@ -14,8 +14,8 @@ import dev.kske.chess.exception.ChessException;
* Represents a FEN string and enables parsing an existing FEN string or
* serializing a {@link Board} to one.
*
+ * @since Chess v0.5-alpha
* @author Kai S. K. Engelbart
- * @since Chess v0.4-alpha
*/
public class FENString {
diff --git a/src/dev/kske/chess/board/GameState.java b/src/dev/kske/chess/board/GameState.java
index 07579dd..635a235 100644
--- a/src/dev/kske/chess/board/GameState.java
+++ b/src/dev/kske/chess/board/GameState.java
@@ -4,7 +4,9 @@ package dev.kske.chess.board;
* Project: Chess
* File: GameState.java
* Created: 07.07.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.1-alpha
+ * @author Kai S. K. Engelbart
*/
public enum GameState {
CHECK, CHECKMATE, STALEMATE, NORMAL;
diff --git a/src/dev/kske/chess/board/King.java b/src/dev/kske/chess/board/King.java
index de90fbf..3e0c913 100644
--- a/src/dev/kske/chess/board/King.java
+++ b/src/dev/kske/chess/board/King.java
@@ -7,7 +7,9 @@ import java.util.List;
* Project: Chess
* File: King.java
* Created: 01.07.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.1-alpha
+ * @author Kai S. K. Engelbart
*/
public class King extends Piece {
diff --git a/src/dev/kske/chess/board/Knight.java b/src/dev/kske/chess/board/Knight.java
index b225e14..aba0499 100644
--- a/src/dev/kske/chess/board/Knight.java
+++ b/src/dev/kske/chess/board/Knight.java
@@ -7,7 +7,9 @@ import java.util.List;
* Project: Chess
* File: Knight.java
* Created: 01.07.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.1-alpha
+ * @author Kai S. K. Engelbart
*/
public class Knight extends Piece {
diff --git a/src/dev/kske/chess/board/Log.java b/src/dev/kske/chess/board/Log.java
index 3ae372e..c2da70b 100644
--- a/src/dev/kske/chess/board/Log.java
+++ b/src/dev/kske/chess/board/Log.java
@@ -11,7 +11,9 @@ import dev.kske.chess.board.Piece.Type;
* Project: Chess
* File: Log.java
* Created: 09.07.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.1-alpha
+ * @author Kai S. K. Engelbart
*/
public class Log implements Iterable {
diff --git a/src/dev/kske/chess/board/Move.java b/src/dev/kske/chess/board/Move.java
index 34cacf9..f1312f4 100644
--- a/src/dev/kske/chess/board/Move.java
+++ b/src/dev/kske/chess/board/Move.java
@@ -6,7 +6,9 @@ import java.util.Objects;
* Project: Chess
* File: Move.java
* Created: 02.07.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.1-alpha
+ * @author Kai S. K. Engelbart
*/
public class Move {
diff --git a/src/dev/kske/chess/board/MoveNode.java b/src/dev/kske/chess/board/MoveNode.java
index 600a0c9..a8bf2b8 100644
--- a/src/dev/kske/chess/board/MoveNode.java
+++ b/src/dev/kske/chess/board/MoveNode.java
@@ -11,7 +11,9 @@ import dev.kske.chess.board.Piece.Color;
* Project: Chess
* File: MoveNode.java
* Created: 02.10.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.5-alpha
+ * @author Kai S. K. Engelbart
*/
public class MoveNode {
diff --git a/src/dev/kske/chess/board/Pawn.java b/src/dev/kske/chess/board/Pawn.java
index a9cac51..b83a625 100644
--- a/src/dev/kske/chess/board/Pawn.java
+++ b/src/dev/kske/chess/board/Pawn.java
@@ -7,7 +7,9 @@ import java.util.List;
* Project: Chess
* File: Pawn.java
* Created: 01.07.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.1-alpha
+ * @author Kai S. K. Engelbart
*/
public class Pawn extends Piece {
diff --git a/src/dev/kske/chess/board/Piece.java b/src/dev/kske/chess/board/Piece.java
index ef4ea90..865fb9f 100644
--- a/src/dev/kske/chess/board/Piece.java
+++ b/src/dev/kske/chess/board/Piece.java
@@ -8,7 +8,9 @@ import java.util.Objects;
* Project: Chess
* File: Piece.java
* Created: 01.07.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.1-alpha
+ * @author Kai S. K. Engelbart
*/
public abstract class Piece implements Cloneable {
diff --git a/src/dev/kske/chess/board/Position.java b/src/dev/kske/chess/board/Position.java
index 5edcf7c..15a185a 100644
--- a/src/dev/kske/chess/board/Position.java
+++ b/src/dev/kske/chess/board/Position.java
@@ -4,7 +4,9 @@ package dev.kske.chess.board;
* Project: Chess
* File: Position.java
* Created: 02.07.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.1-alpha
+ * @author Kai S. K. Engelbart
*/
public class Position {
diff --git a/src/dev/kske/chess/board/Queen.java b/src/dev/kske/chess/board/Queen.java
index 6fcc401..3932b95 100644
--- a/src/dev/kske/chess/board/Queen.java
+++ b/src/dev/kske/chess/board/Queen.java
@@ -7,7 +7,9 @@ import java.util.List;
* Project: Chess
* File: Queen.java
* Created: 01.07.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.1-alpha
+ * @author Kai S. K. Engelbart
*/
public class Queen extends Piece {
diff --git a/src/dev/kske/chess/board/Rook.java b/src/dev/kske/chess/board/Rook.java
index affc7b0..590e49e 100644
--- a/src/dev/kske/chess/board/Rook.java
+++ b/src/dev/kske/chess/board/Rook.java
@@ -7,7 +7,9 @@ import java.util.List;
* Project: Chess
* File: Rook.java
* Created: 01.07.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.1-alpha
+ * @author Kai S. K. Engelbart
*/
public class Rook extends Piece {
diff --git a/src/dev/kske/chess/event/Event.java b/src/dev/kske/chess/event/Event.java
index 88df215..5e31830 100644
--- a/src/dev/kske/chess/event/Event.java
+++ b/src/dev/kske/chess/event/Event.java
@@ -4,7 +4,9 @@ package dev.kske.chess.event;
* Project: Chess
* File: Event.java
* Created: 7 Aug 2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.4-alpha
+ * @author Kai S. K. Engelbart
*/
public interface Event {
diff --git a/src/dev/kske/chess/event/EventBus.java b/src/dev/kske/chess/event/EventBus.java
index d652df9..b8cb2df 100644
--- a/src/dev/kske/chess/event/EventBus.java
+++ b/src/dev/kske/chess/event/EventBus.java
@@ -7,7 +7,9 @@ import java.util.List;
* Project: Chess
* File: EventBus.java
* Created: 7 Aug 2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.4-alpha
+ * @author Kai S. K. Engelbart
*/
public class EventBus {
diff --git a/src/dev/kske/chess/event/MoveEvent.java b/src/dev/kske/chess/event/MoveEvent.java
index fad5ff3..92eafe6 100644
--- a/src/dev/kske/chess/event/MoveEvent.java
+++ b/src/dev/kske/chess/event/MoveEvent.java
@@ -6,7 +6,9 @@ import dev.kske.chess.board.Move;
* Project: Chess
* File: MoveEvent.java
* Created: 7 Aug 2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.4-alpha
+ * @author Kai S. K. Engelbart
*/
public class MoveEvent implements Event {
diff --git a/src/dev/kske/chess/event/Subscribable.java b/src/dev/kske/chess/event/Subscribable.java
index ff08cc4..4de8380 100644
--- a/src/dev/kske/chess/event/Subscribable.java
+++ b/src/dev/kske/chess/event/Subscribable.java
@@ -6,7 +6,9 @@ import java.util.Set;
* Project: Chess
* File: Subscribable.java
* Created: 7 Aug 2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.4-alpha
+ * @author Kai S. K. Engelbart
*/
public interface Subscribable {
diff --git a/src/dev/kske/chess/exception/ChessException.java b/src/dev/kske/chess/exception/ChessException.java
index 2137d96..3bedea7 100644
--- a/src/dev/kske/chess/exception/ChessException.java
+++ b/src/dev/kske/chess/exception/ChessException.java
@@ -4,7 +4,9 @@ package dev.kske.chess.exception;
* Project: Chess
* File: ChessException.java
* Created: 22 Sep 2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.5-alpha
+ * @author Kai S. K. Engelbart
*/
public class ChessException extends Exception {
diff --git a/src/dev/kske/chess/game/Game.java b/src/dev/kske/chess/game/Game.java
index feb8781..edaf6d8 100644
--- a/src/dev/kske/chess/game/Game.java
+++ b/src/dev/kske/chess/game/Game.java
@@ -22,7 +22,9 @@ import dev.kske.chess.ui.OverlayComponent;
* Project: Chess
* File: Game.java
* Created: 06.07.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.1-alpha
+ * @author Kai S. K. Engelbart
*/
public class Game {
diff --git a/src/dev/kske/chess/game/NaturalPlayer.java b/src/dev/kske/chess/game/NaturalPlayer.java
index bf4bae8..8670a0e 100644
--- a/src/dev/kske/chess/game/NaturalPlayer.java
+++ b/src/dev/kske/chess/game/NaturalPlayer.java
@@ -16,7 +16,9 @@ import dev.kske.chess.ui.OverlayComponent;
* Project: Chess
* File: NaturalPlayer.java
* Created: 06.07.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.1-alpha
+ * @author Kai S. K. Engelbart
*/
public class NaturalPlayer extends Player implements MouseListener {
diff --git a/src/dev/kske/chess/game/Player.java b/src/dev/kske/chess/game/Player.java
index 8163532..0b88f9d 100644
--- a/src/dev/kske/chess/game/Player.java
+++ b/src/dev/kske/chess/game/Player.java
@@ -7,7 +7,9 @@ import dev.kske.chess.board.Piece.Color;
* Project: Chess
* File: Player.java
* Created: 06.07.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.1-alpha
+ * @author Kai S. K. Engelbart
*/
public abstract class Player {
diff --git a/src/dev/kske/chess/game/UCIPlayer.java b/src/dev/kske/chess/game/UCIPlayer.java
index 369c16d..2aa320d 100644
--- a/src/dev/kske/chess/game/UCIPlayer.java
+++ b/src/dev/kske/chess/game/UCIPlayer.java
@@ -12,7 +12,9 @@ import dev.kske.chess.uci.UCIListener;
* Project: Chess
* File: UCIPlayer.java
* Created: 18.07.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.3-alpha
+ * @author Kai S. K. Engelbart
*/
public class UCIPlayer extends Player implements UCIListener {
diff --git a/src/dev/kske/chess/game/ai/AIPlayer.java b/src/dev/kske/chess/game/ai/AIPlayer.java
index dcae0c5..7e8c015 100644
--- a/src/dev/kske/chess/game/ai/AIPlayer.java
+++ b/src/dev/kske/chess/game/ai/AIPlayer.java
@@ -19,7 +19,9 @@ import dev.kske.chess.game.Player;
* Project: Chess
* File: AIPlayer.java
* Created: 06.07.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.1-alpha
+ * @author Kai S. K. Engelbart
*/
public class AIPlayer extends Player {
diff --git a/src/dev/kske/chess/game/ai/MoveProcessor.java b/src/dev/kske/chess/game/ai/MoveProcessor.java
index 5042b0d..f683983 100644
--- a/src/dev/kske/chess/game/ai/MoveProcessor.java
+++ b/src/dev/kske/chess/game/ai/MoveProcessor.java
@@ -11,7 +11,9 @@ import dev.kske.chess.board.Piece.Color;
* Project: Chess
* File: MoveProcessor.java
* Created: 08.07.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.1-alpha
+ * @author Kai S. K. Engelbart
*/
public class MoveProcessor implements Callable {
diff --git a/src/dev/kske/chess/game/ai/ProcessingResult.java b/src/dev/kske/chess/game/ai/ProcessingResult.java
index 0740f87..951ac71 100644
--- a/src/dev/kske/chess/game/ai/ProcessingResult.java
+++ b/src/dev/kske/chess/game/ai/ProcessingResult.java
@@ -6,7 +6,9 @@ import dev.kske.chess.board.Move;
* Project: Chess
* File: ProcessingResult.java
* Created: 08.07.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.1-alpha
+ * @author Kai S. K. Engelbart
*/
public class ProcessingResult {
diff --git a/src/dev/kske/chess/io/EngineUtil.java b/src/dev/kske/chess/io/EngineUtil.java
index 608006e..4c82842 100644
--- a/src/dev/kske/chess/io/EngineUtil.java
+++ b/src/dev/kske/chess/io/EngineUtil.java
@@ -16,7 +16,10 @@ import dev.kske.chess.uci.UCIListener;
* Project: Chess
* File: MenuBar.java
* Created: 23.07.2019
- * Author: Leon Hofmeister
+ *
+ * @since Chess v0.2-alpha
+ * @author Kai S. K. Engelbart
+ * @author Leon Hofmeister
*/
public class EngineUtil {
diff --git a/src/dev/kske/chess/io/TextureUtil.java b/src/dev/kske/chess/io/TextureUtil.java
index 58fc621..25ac288 100644
--- a/src/dev/kske/chess/io/TextureUtil.java
+++ b/src/dev/kske/chess/io/TextureUtil.java
@@ -15,7 +15,9 @@ import dev.kske.chess.board.Piece;
* Project: Chess
* File: TextureUtil.java
* Created: 01.07.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.1-alpha
+ * @author Kai S. K. Engelbart
*/
public class TextureUtil {
@@ -39,7 +41,6 @@ public class TextureUtil {
return scaledTextures.get(key);
}
-
/**
* Scales all piece textures to fit the current tile size.
*
@@ -47,8 +48,7 @@ public class TextureUtil {
*/
public static void scalePieceTextures(int tileSize) {
scaledTextures.clear();
- textures
- .forEach((key, img) -> scaledTextures.put(key, img.getScaledInstance(tileSize, tileSize, Image.SCALE_SMOOTH)));
+ textures.forEach((key, img) -> scaledTextures.put(key, img.getScaledInstance(tileSize, tileSize, Image.SCALE_SMOOTH)));
}
/**
diff --git a/src/dev/kske/chess/pgn/PGNDatabase.java b/src/dev/kske/chess/pgn/PGNDatabase.java
index 281e962..c29598e 100644
--- a/src/dev/kske/chess/pgn/PGNDatabase.java
+++ b/src/dev/kske/chess/pgn/PGNDatabase.java
@@ -12,7 +12,9 @@ import dev.kske.chess.exception.ChessException;
* Project: Chess
* File: PGNDatabase.java
* Created: 4 Oct 2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.5-alpha
+ * @author Kai S. K. Engelbart
*/
public class PGNDatabase {
diff --git a/src/dev/kske/chess/pgn/PGNGame.java b/src/dev/kske/chess/pgn/PGNGame.java
index 6293976..575fb75 100644
--- a/src/dev/kske/chess/pgn/PGNGame.java
+++ b/src/dev/kske/chess/pgn/PGNGame.java
@@ -14,7 +14,9 @@ import dev.kske.chess.exception.ChessException;
* Project: Chess
* File: PGNGame.java
* Created: 22 Sep 2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.5-alpha
+ * @author Kai S. K. Engelbart
*/
public class PGNGame {
diff --git a/src/dev/kske/chess/uci/UCIHandle.java b/src/dev/kske/chess/uci/UCIHandle.java
index d9dd77a..c810166 100644
--- a/src/dev/kske/chess/uci/UCIHandle.java
+++ b/src/dev/kske/chess/uci/UCIHandle.java
@@ -7,7 +7,9 @@ import java.io.PrintWriter;
* Project: Chess
* File: UCIHandle.java
* Created: 18.07.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.3-alpha
+ * @author Kai S. K. Engelbart
*/
public class UCIHandle {
diff --git a/src/dev/kske/chess/uci/UCIInfo.java b/src/dev/kske/chess/uci/UCIInfo.java
index c68f4f4..8909c7d 100644
--- a/src/dev/kske/chess/uci/UCIInfo.java
+++ b/src/dev/kske/chess/uci/UCIInfo.java
@@ -10,12 +10,13 @@ import dev.kske.chess.board.Move;
* Project: Chess
* File: UCIInfo.java
* Created: 28.07.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.3-alpha
+ * @author Kai S. K. Engelbart
*/
public class UCIInfo {
- private int depth, seldepth, time, nodes, multipv, currmovenumber, hashfull, nps, tbhits, sbhits, cpuload,
- cpunr;
+ private int depth, seldepth, time, nodes, multipv, currmovenumber, hashfull, nps, tbhits, sbhits, cpuload, cpunr;
private List pv, refutation, currline;
private Move currmove;
private Score score;
diff --git a/src/dev/kske/chess/uci/UCIListener.java b/src/dev/kske/chess/uci/UCIListener.java
index 736d8ef..9d8b727 100644
--- a/src/dev/kske/chess/uci/UCIListener.java
+++ b/src/dev/kske/chess/uci/UCIListener.java
@@ -6,7 +6,9 @@ import dev.kske.chess.board.Move;
* Project: Chess
* File: UCIListener.java
* Created: 19.07.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.3-alpha
+ * @author Kai S. K. Engelbart
*/
public interface UCIListener {
@@ -53,6 +55,7 @@ public interface UCIListener {
* The engine will check the copy protection now.
*/
default void onCopyProtectionChecking() {}
+
/**
* The engine has successfully checked the copy protection.
*/
diff --git a/src/dev/kske/chess/uci/UCIOption.java b/src/dev/kske/chess/uci/UCIOption.java
index eab40bd..ed38017 100644
--- a/src/dev/kske/chess/uci/UCIOption.java
+++ b/src/dev/kske/chess/uci/UCIOption.java
@@ -9,7 +9,9 @@ import java.util.StringJoiner;
* Project: Chess
* File: UCIOption.java
* Created: 22.07.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.3-alpha
+ * @author Kai S. K. Engelbart
*/
public class UCIOption {
diff --git a/src/dev/kske/chess/uci/UCIReceiver.java b/src/dev/kske/chess/uci/UCIReceiver.java
index 06ba8d6..1d80b6b 100644
--- a/src/dev/kske/chess/uci/UCIReceiver.java
+++ b/src/dev/kske/chess/uci/UCIReceiver.java
@@ -13,7 +13,9 @@ import dev.kske.chess.board.Move;
* Project: Chess
* File: UCIReceiver.java
* Created: 19.07.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.3-alpha
+ * @author Kai S. K. Engelbart
*/
public class UCIReceiver implements Runnable {
@@ -129,15 +131,9 @@ public class UCIReceiver implements Runnable {
}
}
- private void parseInfo(String line) {
- listeners.forEach(l -> l.onInfo(new UCIInfo(line)));
- }
+ private void parseInfo(String line) { listeners.forEach(l -> l.onInfo(new UCIInfo(line))); }
- private void parseOption(String line) {
- listeners.forEach(l -> l.onOption(new UCIOption((line))));
- }
+ private void parseOption(String line) { listeners.forEach(l -> l.onOption(new UCIOption((line)))); }
- public void addListener(UCIListener listener) {
- listeners.add(listener);
- }
+ public void addListener(UCIListener listener) { listeners.add(listener); }
}
diff --git a/src/dev/kske/chess/ui/AIConfigDialog.java b/src/dev/kske/chess/ui/AIConfigDialog.java
index 5086f89..64515cb 100644
--- a/src/dev/kske/chess/ui/AIConfigDialog.java
+++ b/src/dev/kske/chess/ui/AIConfigDialog.java
@@ -12,8 +12,11 @@ import javax.swing.SpinnerNumberModel;
* Project: Chess
* File: AIConfigDialog.java
* Created: 16.07.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.1-alpha
+ * @author Kai S. K. Engelbart
*/
+@Deprecated
public class AIConfigDialog extends JDialog {
private static final long serialVersionUID = -8047984368152479992L;
diff --git a/src/dev/kske/chess/ui/BoardComponent.java b/src/dev/kske/chess/ui/BoardComponent.java
index 802af23..b4120c8 100644
--- a/src/dev/kske/chess/ui/BoardComponent.java
+++ b/src/dev/kske/chess/ui/BoardComponent.java
@@ -12,11 +12,13 @@ import dev.kske.chess.io.TextureUtil;
* Project: Chess
* File: BoardComponent.java
* Created: 01.07.2019
- * Author: Kai S. K. Engelbart
*
* A square panel for rendering the chess board. To work correctly,
* this must be added to a parent component that allows the child to decide the
* size.
+ *
+ * @since Chess v0.1-alpha
+ * @author Kai S. K. Engelbart
*/
public class BoardComponent extends JComponent {
@@ -48,8 +50,8 @@ public class BoardComponent extends JComponent {
// Draw the pieces if a board is present
if (board != null) for (int i = 0; i < 8; i++)
for (int j = 0; j < 8; j++)
- if (board.getBoardArr()[i][j] != null) g.drawImage(TextureUtil
- .getPieceTexture(board.getBoardArr()[i][j]), i * tileSize, j * tileSize, this);
+ if (board.getBoardArr()[i][j] != null)
+ g.drawImage(TextureUtil.getPieceTexture(board.getBoardArr()[i][j]), i * tileSize, j * tileSize, this);
}
public int getTileSize() { return boardPane.getTileSize(); }
diff --git a/src/dev/kske/chess/ui/BoardPane.java b/src/dev/kske/chess/ui/BoardPane.java
index a36ab97..cb9740e 100644
--- a/src/dev/kske/chess/ui/BoardPane.java
+++ b/src/dev/kske/chess/ui/BoardPane.java
@@ -8,7 +8,9 @@ import javax.swing.JLayeredPane;
* Project: Chess
* File: BoardPane.java
* Created: 08.07.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.1-alpha
+ * @author Kai S. K. Engelbart
*/
public class BoardPane extends JLayeredPane {
diff --git a/src/dev/kske/chess/ui/DialogUtil.java b/src/dev/kske/chess/ui/DialogUtil.java
index f591881..9a70d7c 100644
--- a/src/dev/kske/chess/ui/DialogUtil.java
+++ b/src/dev/kske/chess/ui/DialogUtil.java
@@ -23,7 +23,9 @@ import dev.kske.chess.io.EngineUtil;
* Project: Chess
* File: DialogUtil.java
* Created: 24.07.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.3-alpha
+ * @author Kai S. K. Engelbart
*/
public class DialogUtil {
diff --git a/src/dev/kske/chess/ui/GameDropTarget.java b/src/dev/kske/chess/ui/GameDropTarget.java
index c6da82b..4419495 100644
--- a/src/dev/kske/chess/ui/GameDropTarget.java
+++ b/src/dev/kske/chess/ui/GameDropTarget.java
@@ -13,7 +13,9 @@ import java.util.List;
* Project: Chess
* File: GameDropTarget.java
* Created: 13 Aug 2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.3-alpha
+ * @author Kai S. K. Engelbart
*/
public class GameDropTarget extends DropTargetAdapter {
diff --git a/src/dev/kske/chess/ui/GamePane.java b/src/dev/kske/chess/ui/GamePane.java
index c07f59e..8d537d2 100644
--- a/src/dev/kske/chess/ui/GamePane.java
+++ b/src/dev/kske/chess/ui/GamePane.java
@@ -29,7 +29,9 @@ import dev.kske.chess.game.NaturalPlayer;
* Project: Chess
* File: GamePane.java
* Created: 23.08.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.4-alpha
+ * @author Kai S. K. Engelbart
*/
public class GamePane extends JComponent {
diff --git a/src/dev/kske/chess/ui/MainWindow.java b/src/dev/kske/chess/ui/MainWindow.java
index cb6271f..efa318c 100644
--- a/src/dev/kske/chess/ui/MainWindow.java
+++ b/src/dev/kske/chess/ui/MainWindow.java
@@ -24,7 +24,9 @@ import dev.kske.chess.pgn.PGNGame;
* Project: Chess
* File: MainWindow.java
* Created: 01.07.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.1-alpha
+ * @author Kai S. K. Engelbart
*/
public class MainWindow extends JFrame {
diff --git a/src/dev/kske/chess/ui/MenuBar.java b/src/dev/kske/chess/ui/MenuBar.java
index a224268..84c3c15 100644
--- a/src/dev/kske/chess/ui/MenuBar.java
+++ b/src/dev/kske/chess/ui/MenuBar.java
@@ -17,7 +17,9 @@ import dev.kske.chess.io.EngineUtil;
* Project: Chess
* File: MenuBar.java
* Created: 16.07.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.1-alpha
+ * @author Kai S. K. Engelbart
*/
public class MenuBar extends JMenuBar {
diff --git a/src/dev/kske/chess/ui/MoveNodeRenderer.java b/src/dev/kske/chess/ui/MoveNodeRenderer.java
index 26b1b99..f78bea5 100644
--- a/src/dev/kske/chess/ui/MoveNodeRenderer.java
+++ b/src/dev/kske/chess/ui/MoveNodeRenderer.java
@@ -15,6 +15,7 @@ import dev.kske.chess.board.MoveNode;
* File: MoveNodeRenderer.java
* Created: 9 Oct 2019
*
+ * @since Chess v0.5-alpha
* @author Kai S. K. Engelbart
*/
public class MoveNodeRenderer extends JLabel implements ListCellRenderer {
diff --git a/src/dev/kske/chess/ui/OverlayComponent.java b/src/dev/kske/chess/ui/OverlayComponent.java
index a0be894..b011281 100644
--- a/src/dev/kske/chess/ui/OverlayComponent.java
+++ b/src/dev/kske/chess/ui/OverlayComponent.java
@@ -20,7 +20,9 @@ import dev.kske.chess.board.Position;
* Project: Chess
* File: OverlayComponent.java
* Created: 08.07.2019
- * Author: Kai S. K. Engelbart
+ *
+ * @since Chess v0.1-alpha
+ * @author Kai S. K. Engelbart
*/
public class OverlayComponent extends JComponent {