summaryrefslogtreecommitdiff
path: root/height-map-display/src/map/node.h
blob: 03fb97cb8ab1c9b5e809390951df444b5ada39aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef NODE_H
#define NODE_H

#include <stdbool.h>

typedef struct Node {
    int x;
    int y;
    float elevation;
    bool selected;
} Node;

// TODO: get (x, y) as int arr
void change_node_height(Node* node, float diff);
int* get_coords(Node* node);

#endif