Updated 'Piece' class.

Updated the 'Piece' class by removing the unused 'id' parameter from the constructor.
This commit is contained in:
Daniel Grigencha
2024-12-03 00:38:24 +01:00
parent abe66aff5d
commit 5b9bc7aa36

View File

@@ -35,12 +35,15 @@ public class Piece {
* @param color the color of the piece
* @param state the state of the piece
*/
public Piece(Color color, PieceState state, int id) {
public Piece(Color color, PieceState state) {
this.color = color;
this.state = state;
shield = ShieldState.NONE;
}
/**
* Constructor.
*/
private Piece() {
color = Color.NONE;
state = PieceState.WAITING;