import org.hedgecode.chess.position.Piece;
/**
- *
+ * Storage class for set of images of chess pieces.
*
* @author Dmitry Samoshin aka gotty
*/
private static String[] allPieceNames;
- PieceSet() {
+ private PieceSet() {
}
public void add(String name, BufferedImage image) {
return pieceSetMap.get(colorPiece);
}
- public boolean isFull() {
+ public boolean isFilled() {
for (ColorPiece colorPiece : ColorPiece.values()) {
if (!pieceSetMap.containsKey(colorPiece)
|| (pieceSetMap.get(colorPiece) == null)) {