5#ifndef CASSE_BRIQUE_BRIQUE_H
6#define CASSE_BRIQUE_BRIQUE_H
10#include <SDL2/SDL_timer.h>
18#define red {184,84,80},{248,206,204,255}
19#define yellow {214,182,86},{255,242,204,255}
20#define green {130,179,102},{213,232,212,255}
21#define blue {108, 142, 191},{218, 232, 252,255}
22#define lila {150, 115, 166},{225, 213, 231,255}
54 Brique(
int x,
int y,
int w,
int h);
65 Brique(
int x,
int y,
int width,
int height,
bool isTop);
76 Brique(
int x,
int y,
int width,
int height,
int edges);
The Brique class represents a block object in the game.
bool collided
Flag indicating whether the block has collided with another object.
int super_power
The super power level of the block.
SDL_Color color1
The primary color of the block.
SDL_Color color2
The secondary color of the block.
int collision_counter
The collision counter for the block.
void handleCollisions(point collision) override
Handles collisions with other objects.
The CollidingObject class represents a generic colliding object.
The point struct represents a point in 2D space.