From 8d3d0a98d71181d5f65b4f08d40976a9824ba68a Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Wed, 21 May 2025 23:48:24 +0200 Subject: Add the logic for the Cell if filled When the user click on a box, a sign appears and that cell will be set as filled. --- src/main/game/cell.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main/game/cell.h') diff --git a/src/main/game/cell.h b/src/main/game/cell.h index 50a5606..000edfb 100644 --- a/src/main/game/cell.h +++ b/src/main/game/cell.h @@ -24,9 +24,12 @@ typedef struct Cell { float left, right, top, bottom; + bool filled; } Cell; Cell *cell_new(float left, float right, float top, float bottom); bool cell_within_bounds(Cell *cell, float x, float y); +void cell_set_filled(Cell *cell, bool filled); +bool cell_is_filled(Cell *cell); #endif /* __GAME_CELL_H__ */ -- cgit v1.2.3