summaryrefslogtreecommitdiff
path: root/src/tile_map.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-09-21 07:48:18 +0000
committerrubidium <rubidium@openttd.org>2014-09-21 07:48:18 +0000
commit9caf6b4537c3fe3f3f516a49f983defab277e05e (patch)
treedcc156392f43fbc5f88d859160ac447f4d50d993 /src/tile_map.h
parent3548195e3ee162f10d21406da97fb67eece6bc28 (diff)
downloadopenttd-9caf6b4537c3fe3f3f516a49f983defab277e05e.tar.xz
(svn r26868) -Add: methods for getting a (theoretical) slope and tile height of tiles outside of the map array (ic111)
Diffstat (limited to 'src/tile_map.h')
-rw-r--r--src/tile_map.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tile_map.h b/src/tile_map.h
index 98863eb59..af1cc32dc 100644
--- a/src/tile_map.h
+++ b/src/tile_map.h
@@ -34,6 +34,8 @@ static inline uint TileHeight(TileIndex tile)
return GB(_m[tile].type_height, 0, 4);
}
+uint TileHeightOutsideMap(int x, int y);
+
/**
* Sets the height of a tile.
*
@@ -262,6 +264,8 @@ static inline Slope GetTilePixelSlope(TileIndex tile, int *h)
return s;
}
+Slope GetTilePixelSlopeOutsideMap(int x, int y, int *h);
+
/**
* Get bottom height of the tile
* @param tile Tile to compute height of
@@ -272,6 +276,8 @@ static inline int GetTilePixelZ(TileIndex tile)
return GetTileZ(tile) * TILE_HEIGHT;
}
+int GetTilePixelZOutsideMap(int x, int y);
+
/**
* Get top height of the tile
* @param t Tile to compute height of
@@ -282,6 +288,8 @@ static inline int GetTileMaxPixelZ(TileIndex tile)
return GetTileMaxZ(tile) * TILE_HEIGHT;
}
+int GetTileMaxPixelZOutsideMap(int x, int y);
+
/**
* Calculate a hash value from a tile position