Signed-off-by: Anthony Debucquoy <debucquoy.anthony@gmail.com>
This commit is contained in:
2023-03-21 09:56:13 +01:00
parent 71beb69c84
commit 4854fef677
3 changed files with 37 additions and 6 deletions

View File

@ -2,6 +2,10 @@ 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;
@ -9,11 +13,6 @@ public class Map extends Shape{
super(matrix);
}
public Map() {
super();
}
// TODO: 2/27/23 Tests for Map
public void addPiece(Piece piece){
pieces.add(piece);
}