casse-brick
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
Grille Class Reference

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.
 

Detailed Description

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.

Definition at line 22 of file grille.h.

Constructor & Destructor Documentation

◆ Grille()

Grille::Grille ( int  windowWidth,
int  windowHeight,
TYPE  type 
)

Constructs a new Grille object with specified parameters.

Parameters
windowWidthThe width of the game window.
windowHeightThe height of the game window.
typeThe type of blocks/bricks to use in the grid.

Definition at line 8 of file grille.cpp.

Member Function Documentation

◆ render()

void Grille::render ( std::shared_ptr< SDL_Renderer >  renderer)

Renders the grid of blocks/bricks on the screen.

Parameters
rendererA shared pointer to the SDL renderer used for rendering.

Definition at line 66 of file grille.cpp.

Field Documentation

◆ grille

std::vector<std::vector<std::shared_ptr<Brique> > > Grille::grille

The grid of blocks/bricks.

Definition at line 24 of file grille.h.


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