tile_map.cpp File Reference

Global tile accessors. More...

#include "stdafx.h"
#include "tile_map.h"
#include "core/math_func.hpp"

Go to the source code of this file.

Functions

Slope GetTileSlope (TileIndex tile, uint *h)
 Return the slope of a given tile.
uint GetTileZ (TileIndex tile)
 Get bottom height of the tile.
uint GetTileMaxZ (TileIndex t)
 Get top height of the tile.

Detailed Description

Global tile accessors.

Definition in file tile_map.cpp.


Function Documentation

uint GetTileMaxZ ( TileIndex  t  ) 

Get top height of the tile.

Parameters:
t Tile to compute height of
Returns:
Maximum height of the tile

Definition at line 82 of file tile_map.cpp.

References MapMaxX(), MapMaxY(), max(), TILE_HEIGHT, TileDiffXY(), TileHeight(), TileX(), and TileY().

Referenced by AutoslopeCheckForEntranceEdge(), BuildTownHouse(), CheckBuildHouseSameZ(), CmdBuildBridge(), DrawCatenary(), DrawCatenaryRailway(), DrawRoadBits(), DrawTramCatenary(), and AITile::GetMaxHeight().

Slope GetTileSlope ( TileIndex  tile,
uint *  h 
)
uint GetTileZ ( TileIndex  tile  ) 

Generated on Wed Apr 21 20:32:09 2010 for OpenTTD by  doxygen 1.6.1