summaryrefslogtreecommitdiff
path: root/src/main/game/cell.h
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2025-05-22 07:53:15 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2025-05-22 07:53:15 +0200
commit50bc168a8ba2a7eb341fec8f688f0c6cd1cd0acc (patch)
treeae74a7b055bba93b0d03a33aa8372ed781f2020f /src/main/game/cell.h
parent9d25cfc7fa3a93cb4bee41a6aab9b76d86ad7298 (diff)
downloadtris-50bc168a8ba2a7eb341fec8f688f0c6cd1cd0acc.tar.gz
tris-50bc168a8ba2a7eb341fec8f688f0c6cd1cd0acc.zip
Add logic to set the sign inside the cell
Diffstat (limited to 'src/main/game/cell.h')
-rw-r--r--src/main/game/cell.h3
1 files changed, 3 insertions, 0 deletions
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__ */