diff options
Diffstat (limited to 'height-map-display/src/map/square.h')
-rw-r--r-- | height-map-display/src/map/square.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/height-map-display/src/map/square.h b/height-map-display/src/map/square.h index 2654eb5..132b43c 100644 --- a/height-map-display/src/map/square.h +++ b/height-map-display/src/map/square.h @@ -1,6 +1,8 @@ #ifndef SQUARE_H #define SQUARE_H +#include <stdbool.h> + #include "node.h" // Include node.h to use Node type. // Define the Terrain_Type enum @@ -17,12 +19,14 @@ typedef struct Square { Node *node_tr; Node *node_bl; Node *node_br; + bool selected; } Square; // Function prototypes -Square* init_square(Node *tl, Node *tr, Node *bl, Node *br, Terrain_Type terrain); +Square* init_square(Node *tl, Node *tr, Node *bl, Node *br, Terrain_Type terrain, bool selected); void change_square_height(Square* square, float diff); void change_square_terrain(Square* square, Terrain_Type terrain); +Square* find_selected_square(Square*** squares, int x, int y); #endif |