src/ai/api/ai_tile.cpp
branchnoai
changeset 9700 e442ce398e83
parent 9698 1d50fe99b7e9
child 9708 a63a756fd080
equal deleted inserted replaced
9699:e1b5f29cc6f9 9700:e442ce398e83
    34 int32 AITile::GetSlope(TileIndex tile)
    34 int32 AITile::GetSlope(TileIndex tile)
    35 {
    35 {
    36 	/* Outside of the map */
    36 	/* Outside of the map */
    37 	if (tile >= ::MapSize()) return 0;
    37 	if (tile >= ::MapSize()) return 0;
    38 
    38 
    39 	return GetTileSlope(tile, NULL);
    39 	return ::GetTileSlope(tile, NULL);
       
    40 }
       
    41 
       
    42 int32 AITile::GetHeight(TileIndex tile)
       
    43 {
       
    44 	/* Outside of the map */
       
    45 	if (tile >= ::MapSize()) return 0;
       
    46 
       
    47 	return ::TileHeight(tile);
    40 }
    48 }
    41 
    49 
    42 int32 AITile::GetCargoAcceptance(TileIndex tile, CargoID cargo_type, uint width, uint height, uint rad)
    50 int32 AITile::GetCargoAcceptance(TileIndex tile, CargoID cargo_type, uint width, uint height, uint rad)
    43 {
    51 {
    44 	/* Outside of the map */
    52 	/* Outside of the map */