summaryrefslogtreecommitdiff
path: root/height-map-display/src/map/square.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--height-map-display/src/map/square.h6
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 132b43c..3852fc9 100644
--- a/height-map-display/src/map/square.h
+++ b/height-map-display/src/map/square.h
@@ -7,9 +7,12 @@
// Define the Terrain_Type enum
typedef enum {
- TERRAIN_FAIRWAY,
+ TERRAIN_INIT,
TERRAIN_ROUGH,
+ TERRAIN_FAIRWAY,
TERRAIN_GREEN,
+ TERRAIN_WATER,
+ TERRAIN_SAND,
} Terrain_Type;
// Define the Square struct
@@ -26,6 +29,7 @@ typedef struct Square {
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);
+float* get_terrain_color(Terrain_Type terrain);
Square* find_selected_square(Square*** squares, int x, int y);
#endif