ajouté classe Menu

This commit is contained in:
2025-03-01 20:27:36 +01:00
parent d443b25de1
commit 8088894073
11 changed files with 136 additions and 48 deletions

View File

@@ -14,7 +14,7 @@ class Board {
std::vector<std::vector<Block>> grid; // the grid, (0,0) is downleft
std::vector<Block> emptyRow; // an empty row of blocks
int width; // the width of the grid
int height; // the base height of the grid, which can extends indefinitely
int height; // the base height of the grid, which can extend indefinitely
public:
/**
@@ -53,6 +53,11 @@ class Board {
*/
std::vector<std::vector<Block>> getBlocks() const;
/**
* @return The width of the grid
*/
int getWidth() const;
/**
* @return The actual height of the grid
*/
@@ -63,11 +68,6 @@ class Board {
*/
int getBaseHeight() const;
/**
* @return The width of the grid
*/
int getWidth() const;
/**
* Stream output operator, adds a 2D grid representing the board
* @return A reference to the output stream