aboutsummaryrefslogtreecommitdiff
path: root/src/tile.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tile.h')
-rw-r--r--src/tile.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tile.h b/src/tile.h
new file mode 100644
index 0000000..721630e
--- /dev/null
+++ b/src/tile.h
@@ -0,0 +1,12 @@
+#pragma once
+#include "board.h"
+
+typedef struct {
+ char edges[5];
+ char center;
+ int shield;
+} Tile;
+
+int is_allowed_placement(Tile tile, int index, BoardUnit* board);
+int place_tile(Tile tile, int index, BoardUnit* board, int force);
+void rotate_tile(Tile* tile, int increment);