|
casse-brick latest
Ce projet est réalisé dans le cadre du cours de Programmation Avancée en M1 Informatique de l'université de Strasbourg.
|
The Grille class represents the game grid for blocks/bricks. More...
#include <grille.h>
Public Member Functions | |
| Grille (int windowWidth, int windowHeight, TYPE type) | |
| Constructs a new Grille object with specified parameters. | |
| void | render (std::shared_ptr< SDL_Renderer > renderer) |
| Renders the grid of blocks/bricks on the screen. | |
Data Fields | |
| std::vector< std::vector< std::shared_ptr< Brique > > > | grille |
| The grid of blocks/bricks. | |
The Grille class represents the game grid for blocks/bricks.
The Grille class manages the grid used for placing blocks or bricks in the game.
| Grille::Grille | ( | int | windowWidth, |
| int | windowHeight, | ||
| TYPE | type | ||
| ) |
Constructs a new Grille object with specified parameters.
| windowWidth | The width of the game window. |
| windowHeight | The height of the game window. |
| type | The type of blocks/bricks to use in the grid. |
Definition at line 8 of file grille.cpp.
| void Grille::render | ( | std::shared_ptr< SDL_Renderer > | renderer | ) |
Renders the grid of blocks/bricks on the screen.
| renderer | A shared pointer to the SDL renderer used for rendering. |
Definition at line 66 of file grille.cpp.
| std::vector<std::vector<std::shared_ptr<Brique> > > Grille::grille |