package schack;

import java.awt.Point;
import java.io.IOException;
import java.util.ArrayList;

public abstract class PieceKnownIfMoved extends Piece {

    protected boolean moved = false;

    public PieceKnownIfMoved(boolean isWhite, Point startingPosition) throws IOException {
        super(isWhite, startingPosition);
    }

    public boolean isSeen(ArrayList<Piece> pieces) {
        return true;
    }

    @Override
    public void move(Piece[][] pieces, Point toMove) {
        super.move(pieces, toMove);
        moved = true;
    }

    public boolean isMoved() {
        return moved;
    }

}
