summaryrefslogtreecommitdiff
path: root/src/tile_type.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-12-25 23:42:52 +0000
committerrubidium <rubidium@openttd.org>2007-12-25 23:42:52 +0000
commitaac835171e2ef3b72e3706754153c1b9304268a8 (patch)
tree070c07001872a2ff901cc931aa615cd0c58aca13 /src/tile_type.h
parent6cb68b9144a3c0cd22b4fd3392c519a4217b2f72 (diff)
downloadopenttd-aac835171e2ef3b72e3706754153c1b9304268a8.tar.xz
(svn r11700) -Codechange: reduce the amount of unnecessary includes.
Diffstat (limited to 'src/tile_type.h')
-rw-r--r--src/tile_type.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/tile_type.h b/src/tile_type.h
index 4c4f2a9c8..e954aa1fb 100644
--- a/src/tile_type.h
+++ b/src/tile_type.h
@@ -7,11 +7,15 @@
#include "core/enum_type.hpp"
-/** Maximum allowed tile height */
-#define MAX_TILE_HEIGHT 15
+enum {
+ TILE_SIZE = 16, ///< Tiles are 16x16 "units" in size
+ TILE_PIXELS = 32, ///< a tile is 32x32 pixels
+ TILE_HEIGHT = 8, ///< The standard height-difference between tiles on two levels is 8 (z-diff 8)
+
+ MAX_TILE_HEIGHT = 15, ///< Maximum allowed tile height
+ MAX_SNOWLINE_HEIGHT = (MAX_TILE_HEIGHT - 2), ///< Maximum allowed snowline height
+};
-/** Maximum allowed snowline height */
-#define MAX_SNOWLINE_HEIGHT (MAX_TILE_HEIGHT - 2)
/**
* The different type of a tile.
@@ -51,4 +55,9 @@ enum TropicZone {
*/
typedef uint32 TileIndex;
+/**
+ * The very nice invalid tile marker
+ */
+static const TileIndex INVALID_TILE = (TileIndex)-1;
+
#endif /* TILE_TYPE_H */