#ifndef SQUARE_H #define SQUARE_H #include "node.h" // Include node.h to use Node type. // Define the Terrain_Type enum typedef enum { TERRAIN_FAIRWAY, TERRAIN_ROUGH, TERRAIN_GREEN, } Terrain_Type; // Define the Square struct typedef struct Square { Terrain_Type terrain; Node *nodes[4]; // Array of Node pointers } Square; // Function prototypes Square* init_square(Node *nodes[4], Terrain_Type terrain); void change_square_height(Square* square, float diff); #endif