placing static function in their respective files & changing addShape to addPiece
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is failing

Signed-off-by: Anthony Debucquoy <debucquoy.anthony@gmail.com>
This commit is contained in:
2023-03-19 23:28:31 +01:00
parent b9a6badadf
commit dfb297525b
4 changed files with 44 additions and 33 deletions

View File

@@ -14,7 +14,12 @@ public class Map extends Shape{
}
// TODO: 2/27/23 Tests for Map
public void AddShape(Piece piece){
public void addPiece(Piece piece){
pieces.add(piece);
}
public void addPiece(Piece[] pieces) {
for (Piece p : pieces)
this.addPiece(p);
}
}