56 std::vector<Block> mBlockList;
66 void Init(
unsigned int rows,
unsigned int cols);
72 unsigned int Cols()
const {
return mCols; }
75 unsigned int Rows()
const {
return mRows; }
unsigned int Rows() const
Get the number of rows of blocks.
Definition: BlockMatrix.h:75
BlockMatrix()
Default constructor.
void Init(unsigned int rows, unsigned int cols)
Initialize the matrix to hold the given rows and columns of blocks.
unsigned int Cols() const
Get the number of columns of blocks.
Definition: BlockMatrix.h:72
Wall block.
Definition: Block.h:52
Matrix with the wall blocks of the game.
Definition: BlockMatrix.h:52
unsigned int CountVisibleBlocks() const
Count blocks that are still visible (not completely destroyed)
Block & operator()(unsigned int row, unsigned int col)
Access a block in the matrix using its row and column.