summaryrefslogtreecommitdiff
path: root/tile.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-05 12:34:55 +0000
committertron <tron@openttd.org>2006-03-05 12:34:55 +0000
commitf6176a89f944cb7643251f0511ae992318bde0dc (patch)
tree113bde0444e78799f198050654eba4d96e28702e /tile.h
parent4da99989b9b1420d95756cb981663c3e49f481fb (diff)
downloadopenttd-f6176a89f944cb7643251f0511ae992318bde0dc.tar.xz
(svn r3767) Move all direction related enums and functions to a separate header
Diffstat (limited to 'tile.h')
-rw-r--r--tile.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/tile.h b/tile.h
index aacda662a..61286bbcd 100644
--- a/tile.h
+++ b/tile.h
@@ -20,41 +20,6 @@ typedef enum TileTypes {
MP_UNMOVABLE,
} TileType;
-/* Direction as commonly used in v->direction, 8 way. */
-typedef enum Directions {
- DIR_N = 0,
- DIR_NE = 1, /* Northeast, upper right on your monitor */
- DIR_E = 2,
- DIR_SE = 3,
- DIR_S = 4,
- DIR_SW = 5,
- DIR_W = 6,
- DIR_NW = 7,
- DIR_END,
- INVALID_DIR = 0xFF,
-} Direction;
-
-/* Direction commonly used as the direction of entering and leaving tiles, 4-way */
-typedef enum DiagonalDirections {
- DIAGDIR_NE = 0, /* Northeast, upper right on your monitor */
- DIAGDIR_SE = 1,
- DIAGDIR_SW = 2,
- DIAGDIR_NW = 3,
- DIAGDIR_END,
- INVALID_DIAGDIR = 0xFF,
-} DiagDirection;
-
-static inline DiagDirection ReverseDiagDir(DiagDirection d)
-{
- return 2 ^ d;
-}
-
-
-/* the 2 axis */
-typedef enum Axis {
- AXIS_X = 0,
- AXIS_Y = 1
-} Axis;
void SetMapExtraBits(TileIndex tile, byte flags);
uint GetMapExtraBits(TileIndex tile);