From 851a3f34efd456295b21849199c3eaf4e70f9fb9 Mon Sep 17 00:00:00 2001 From: kartofen Date: Wed, 10 Aug 2022 17:18:45 +0300 Subject: big refactor --- src/tilemap.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/tilemap.h (limited to 'src/tilemap.h') diff --git a/src/tilemap.h b/src/tilemap.h new file mode 100644 index 0000000..e945f06 --- /dev/null +++ b/src/tilemap.h @@ -0,0 +1,17 @@ +#ifndef TILEMAP_H +#define TILEMAP_H + +void set(int i, int n); +int is_set(int i, int n); + +void mask(int i, int m, int r); +void generate_tile_masks(small_t* tile_connections); + +void init_tilemap(); + +size_t count_entropy(int i); +void collapse(int i, int n); +int has_collapsed(int i); +int get_collapsed_tile(int i); + +#endif -- cgit v1.2.3