(svn r26868) -Add: methods for getting a (theoretical) slope and tile height of tiles outside of the map array (ic111)

This commit is contained in:
rubidium
2014-09-21 07:48:18 +00:00
parent f9be0f5faa
commit feab521cd5
2 changed files with 161 additions and 31 deletions

View File

@@ -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