summaryrefslogtreecommitdiff
path: root/height-map-display/src/map/square.h
diff options
context:
space:
mode:
authorSchark <jordan@schark.online>2024-03-17 03:29:39 -0700
committerSchark <jordan@schark.online>2024-03-17 03:29:39 -0700
commitda23e84333230813e1cd688ce4b6ad92f9fdcf5c (patch)
tree59ff50ecb8d13eaf122a8016a6d7f26f7832b813 /height-map-display/src/map/square.h
parent6853e2f83904bafcc4f1131571ba92c7f79f44b3 (diff)
downloadgamedev-da23e84333230813e1cd688ce4b6ad92f9fdcf5c.tar.gz
gamedev-da23e84333230813e1cd688ce4b6ad92f9fdcf5c.zip
Square edge discrepancies, need to fix
Diffstat (limited to 'height-map-display/src/map/square.h')
-rw-r--r--height-map-display/src/map/square.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/height-map-display/src/map/square.h b/height-map-display/src/map/square.h
index d40e7d1..2654eb5 100644
--- a/height-map-display/src/map/square.h
+++ b/height-map-display/src/map/square.h
@@ -13,12 +13,16 @@ typedef enum {
// Define the Square struct
typedef struct Square {
Terrain_Type terrain;
- Node *nodes[4]; // Array of Node pointers
+ Node *node_tl;
+ Node *node_tr;
+ Node *node_bl;
+ Node *node_br;
} Square;
// Function prototypes
-Square* init_square(Node *nodes[4], Terrain_Type terrain);
+Square* init_square(Node *tl, Node *tr, Node *bl, Node *br, Terrain_Type terrain);
void change_square_height(Square* square, float diff);
+void change_square_terrain(Square* square, Terrain_Type terrain);
#endif