ajoute la possiblilité d'ajouter des lignes de garbage
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user