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.
Loading...
Searching...
No Matches
hexagon.h
Go to the documentation of this file.
1//
2// Created by maxime on 08/05/24.
3//
4
5#ifndef CASSE_BRIQUE_HEXAGON_H
6#define CASSE_BRIQUE_HEXAGON_H
7
8#include <SDL2/SDL.h>
9#include <SDL_image.h>
10#include <SDL2/SDL_timer.h>
11#include <iostream>
12#include <memory>
13#include <cmath>
14
15#include "brique.h"
16
17
23class Hexagon : public Brique {
24public:
34 Hexagon(int x, int y, int h, int w, int edges);
35
43 void render(std::shared_ptr<SDL_Renderer> renderer, SDL_Color color1, SDL_Color color2) override;
44};
45
46
47
48#endif //CASSE_BRIQUE_HEXAGON_H
The Brique class represents a block object in the game.
Definition brique.h:36
SDL_Color color1
The primary color of the block.
Definition brique.h:38
SDL_Color color2
The secondary color of the block.
Definition brique.h:39
The Hexagon class represents a hexagonal block.
Definition hexagon.h:23
void render(std::shared_ptr< SDL_Renderer > renderer, SDL_Color color1, SDL_Color color2) override
Renders the hexagonal block on the screen.
Definition hexagon.cpp:13