Updated 'Piece' class.
Updated the 'Piece' class by removing the unused 'id' parameter from the constructor.
This commit is contained in:
@@ -35,12 +35,15 @@ public class Piece {
|
|||||||
* @param color the color of the piece
|
* @param color the color of the piece
|
||||||
* @param state the state 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.color = color;
|
||||||
this.state = state;
|
this.state = state;
|
||||||
shield = ShieldState.NONE;
|
shield = ShieldState.NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*/
|
||||||
private Piece() {
|
private Piece() {
|
||||||
color = Color.NONE;
|
color = Color.NONE;
|
||||||
state = PieceState.WAITING;
|
state = PieceState.WAITING;
|
||||||
|
|||||||
Reference in New Issue
Block a user