20 lines
388 B
Java
Raw Normal View History

package school_project;
import java.util.ArrayList;
/**
* Represent the map with its pieces.
* Every piece has a position element that represent its position on the map
*/
public class Map extends Shape{
private ArrayList<Piece> pieces;
public Map(boolean[][] matrix) {
super(matrix);
}
public void addPiece(Piece piece){
pieces.add(piece);
}
}