From 50bc168a8ba2a7eb341fec8f688f0c6cd1cd0acc Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Thu, 22 May 2025 07:53:15 +0200 Subject: Add logic to set the sign inside the cell --- 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 9a0a213..e912ec0 100644 --- a/src/main/game/cell.h +++ b/src/main/game/cell.h @@ -26,11 +26,14 @@ typedef struct Cell { float left, right, top, bottom; float cx, cy; bool filled; + char sign; } 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); +char cell_get_sign(Cell *cell); +void cell_set_sign(Cell *cell, char sign); #endif /* __GAME_CELL_H__ */ -- cgit v1.2.3