Merge remote-tracking branch 'origin/development2' into development2

This commit is contained in:
Hanno Fleischer
2024-12-12 00:21:13 +01:00
2 changed files with 49 additions and 31 deletions

View File

@@ -118,14 +118,19 @@ public void setIsDied(boolean isDied) {
}
/**
* sets the movabelPieces
* sets the moveablePieces
*
* @param moveablePieces
* @param moveablePieces List that should be set
*/
public void setMoveablePieces(List<Piece> moveablePieces) {
this.moveablePieces = moveablePieces;
}
/**
* adds a piece to the movablePieces
*
* @param piece to be added
*/
public void addMovablePieces(Piece piece){
moveablePieces.add(piece);
}