summaryrefslogtreecommitdiff
path: root/map.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2004-12-15 22:18:54 +0000
committertron <tron@openttd.org>2004-12-15 22:18:54 +0000
commita148ff4e0d22b9d09b13395e57ff4800cdf07729 (patch)
treeabc024a53e9698bc4ed26a6830310805e30c693f /map.h
parent664fc4786d2d5563e272faf95c8c223859fc4996 (diff)
downloadopenttd-a148ff4e0d22b9d09b13395e57ff4800cdf07729.tar.xz
(svn r1117) Move map arrays and some related macros into their own files map.c and map.h
Diffstat (limited to 'map.h')
-rw-r--r--map.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/map.h b/map.h
new file mode 100644
index 000000000..8694ff277
--- /dev/null
+++ b/map.h
@@ -0,0 +1,21 @@
+#ifndef MAP_H
+#define MAP_H
+
+#define TILE_X_BITS 8
+#define TILE_Y_BITS 8
+
+#define TILES_X (1 << TILE_X_BITS)
+#define TILES_Y (1 << TILE_Y_BITS)
+
+#define TILE_X_MAX (TILES_X - 1)
+#define TILE_Y_MAX (TILES_Y - 1)
+
+extern byte _map_type_and_height[TILES_X * TILES_Y];
+extern byte _map5[TILES_X * TILES_Y];
+extern byte _map3_lo[TILES_X * TILES_Y];
+extern byte _map3_hi[TILES_X * TILES_Y];
+extern byte _map_owner[TILES_X * TILES_Y];
+extern byte _map2[TILES_X * TILES_Y];
+extern byte _map_extra_bits[TILES_X * TILES_Y / 4];
+
+#endif