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.cpp
Go to the documentation of this file.
1//
2// Created by maxime on 08/05/24.
3//
4
5#include "hexagon.h"
6
7
8Hexagon::Hexagon(int x, int y, int h, int w, int edges)
9 :
10 Brique(x,y,w,w,edges)
11{}
12
13void Hexagon::render(std::shared_ptr<SDL_Renderer> renderer, SDL_Color color1,SDL_Color color2) {
14 collider->render(renderer, this->color1,this->color2);
15}
The Brique class represents a block object in the game.
Definition brique.h:36
std::shared_ptr< Collider > collider
The collider associated with the object.
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
Hexagon(int x, int y, int h, int w, int edges)
Constructs a new Hexagon object with specified parameters.
Definition hexagon.cpp:8