aboutsummaryrefslogtreecommitdiff
path: root/src/structure.h
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2022-04-11 00:36:45 +0300
committereug-vs <eugene@eug-vs.xyz>2022-04-11 00:36:45 +0300
commita6dc21034a55be0a9c1910787d615b5bca7131c6 (patch)
tree90dd29b77d2cd27b7a3f72754b7bfccc6577d88f /src/structure.h
parentca745926cf181e1aee026c48335543610f60770e (diff)
downloadcarcassonne-engine-c-a6dc21034a55be0a9c1910787d615b5bca7131c6.tar.gz
refactor: divide code into modules
Diffstat (limited to 'src/structure.h')
-rw-r--r--src/structure.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/structure.h b/src/structure.h
new file mode 100644
index 0000000..420c705
--- /dev/null
+++ b/src/structure.h
@@ -0,0 +1,8 @@
+#pragma once
+#include "tile.h"
+
+#define MAX_STRUCTURES 100
+
+void traverse_structure(int group, int index, BoardUnit* board);
+void refresh_structure_groups(BoardUnit* board);
+int evaluate_structure(int index, BoardUnit* board);