From cecf821c9526ba2e93288f4f0ff354b2cb98c452 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 10 Apr 2022 22:32:36 +0300 Subject: feat: highlight player-controlled areas --- src/board.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/board.h') diff --git a/src/board.h b/src/board.h index a993680..cd78901 100644 --- a/src/board.h +++ b/src/board.h @@ -2,7 +2,7 @@ #define BOARD_ROW_UNITS ((BOARD_WIDTH * 2) + 1) #define BOARD_UNITS BOARD_ROW_UNITS * BOARD_ROW_UNITS #define PLAYERS 2 - +#define MAX_STRUCTURES 100 /* constants */ const char EMPTY = ' '; @@ -38,3 +38,9 @@ void rotate_tile(Tile* tile, int increment); void traverse_structure(int group, int index, BoardUnit* board); void refresh_structure_groups(BoardUnit* board); int evaluate_structure(int index, BoardUnit* board); + + +/* meeples */ +int is_allowed_meeple(int meeple, int index, BoardUnit* board, int* meeple_map); +void refresh_meeple_map(BoardUnit* board, int* meeple_map); +int get_structure_dominator(int structure_group, int* meeple_map); -- cgit v1.2.3