casse-brick
Loading...
Searching...
No Matches
grille.h
Go to the documentation of this file.
1//
2// Created by maxime on 02/05/24.
3//
4
5#ifndef CASSE_BRIQUE_GRILLE_H
6#define CASSE_BRIQUE_GRILLE_H
7
8#include <iostream>
9#include <vector>
10
11#include "brique.h"
12#include "rectangle.h"
13#include "hexagon.h"
14#include "triangle.h"
15
16
22class Grille {
23public:
24 std::vector<std::vector<std::shared_ptr<Brique>>> grille;
25
33 Grille(int windowWidth, int windowHeight, TYPE type);
34
40 void render(std::shared_ptr<SDL_Renderer> renderer);
41};
42
43
44
45#endif //CASSE_BRIQUE_GRILLE_H
TYPE
Definition brique.h:25
The Grille class represents the game grid for blocks/bricks.
Definition grille.h:22
std::vector< std::vector< std::shared_ptr< Brique > > > grille
The grid of blocks/bricks.
Definition grille.h:24
void render(std::shared_ptr< SDL_Renderer > renderer)
Renders the grid of blocks/bricks on the screen.
Definition grille.cpp:66