Arkanoid Remake  1.0
Public Member Functions | List of all members
BlockMatrix Class Reference

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.
 
Blockoperator() (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)
 

Detailed Description

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.


The documentation for this class was generated from the following file: