ajoute la possiblilité d'ajouter des lignes de garbage

This commit is contained in:
2025-03-01 18:41:09 +01:00
parent 66c2cf1013
commit 03281a6d70
4 changed files with 40 additions and 4 deletions

View File

@@ -23,9 +23,14 @@ class Board {
Board(int width, int height);
/**
* Change the block of the specified block, if the block is out of bounds it is simply ignored
* Changes the block at the specified position, if the block is out of bounds it is simply ignored
*/
void addBlock(const Position& position, Block block);
void changeBlock(const Position& position, Block block);
/**
* Inserts a row of the specified block type (unless on the specified column that has a hole), at the specified height
*/
void insertRow(int height, int holePosition, Block blockType);
/**
* Clears any complete row and moves down the rows on top