Arkanoid Remake
1.0
|
Matrix with the wall blocks of the game. More...
#include <BlockMatrix.h>
Public Member Functions | |
BlockMatrix () | |
Default constructor. | |
BlockMatrix (unsigned int rows, unsigned int cols) | |
Contructor: call Init() | |
void | Init (unsigned int rows, unsigned int cols) |
Initialize the matrix to hold the given rows and columns of blocks. | |
Block & | operator() (unsigned int row, unsigned int col) |
Access a block in the matrix using its row and column. | |
unsigned int | Cols () const |
Get the number of columns of blocks. | |
unsigned int | Rows () const |
Get the number of rows of blocks. | |
unsigned int | CountVisibleBlocks () const |
Count blocks that are still visible (not completely destroyed) | |
Matrix with the wall blocks of the game.
This class stores a grid of blocks (see Block class), providing methods and operators to access its elements.