ajouté classe Menu
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user