X-Git-Url: https://git.hedgecode.org/?p=chesshog.git;a=blobdiff_plain;f=chesshog-graphics%2Fsrc%2Fmain%2Fjava%2Forg%2Fhedgecode%2Fchess%2Fimg%2Fpiece%2FPieceSet.java;h=58faf410bc8417e4a0b86d9114a1263e1150f907;hp=342ba1aec49a2bec39b94eb947482989d97325fa;hb=0b24d5b71c19ba38060297084ad39685f76a8539;hpb=cc2bc357ce3c21a0b092af8b2ba3e174d10cac81 diff --git a/chesshog-graphics/src/main/java/org/hedgecode/chess/img/piece/PieceSet.java b/chesshog-graphics/src/main/java/org/hedgecode/chess/img/piece/PieceSet.java index 342ba1a..58faf41 100644 --- a/chesshog-graphics/src/main/java/org/hedgecode/chess/img/piece/PieceSet.java +++ b/chesshog-graphics/src/main/java/org/hedgecode/chess/img/piece/PieceSet.java @@ -27,7 +27,7 @@ import org.hedgecode.chess.position.ColorPiece; import org.hedgecode.chess.position.Piece; /** - * + * Storage class for set of images of chess pieces. * * @author Dmitry Samoshin aka gotty */ @@ -37,7 +37,7 @@ public class PieceSet { private static String[] allPieceNames; - PieceSet() { + private PieceSet() { } public void add(String name, BufferedImage image) { @@ -65,7 +65,7 @@ public class PieceSet { return pieceSetMap.get(colorPiece); } - public boolean isFull() { + public boolean isFilled() { for (ColorPiece colorPiece : ColorPiece.values()) { if (!pieceSetMap.containsKey(colorPiece) || (pieceSetMap.get(colorPiece) == null)) {