Shape_Piece_Map #15

Merged
tonitch merged 12 commits from Shape_Piece_Map into master 2023-03-28 00:31:42 +02:00
3 changed files with 23 additions and 0 deletions
Showing only changes of commit e983c5aa13 - Show all commits

View File

@ -0,0 +1,20 @@
package school_project;
import java.util.ArrayList;
public class Map extends Shape{
private ArrayList<Piece> pieces;
public Map(boolean[][] matrix) {
super(matrix);
}
public Map() {
super();
}
// TODO: 2/27/23 Tests for Map
public void AddShape(Piece piece){

This should actually be AddPiece(Piece piece)

This should actually be `AddPiece(Piece piece)`
pieces.add(piece);
}
}

View File

@ -2,6 +2,7 @@ package school_project;
public class Piece extends Shape{
private int x,y; // Position in the Map Object
public Piece() {
super();
}

View File

@ -0,0 +1,2 @@
package school_project;