equal
deleted
inserted
replaced
39 * It creates a radius around the tile and adds up all acceptance of this |
39 * It creates a radius around the tile and adds up all acceptance of this |
40 * cargo and returns that value. |
40 * cargo and returns that value. |
41 * @pre tile is always positive and smaller than AIMap::GetMapSize(). |
41 * @pre tile is always positive and smaller than AIMap::GetMapSize(). |
42 * @param tile the tile to check on. |
42 * @param tile the tile to check on. |
43 * @param cargo_type the cargo to check the acceptance of. |
43 * @param cargo_type the cargo to check the acceptance of. |
|
44 * @param width the width of the station. |
|
45 * @param height the height of the station. |
|
46 * @param radius the radius of the station. |
44 * @return value below 8 means no acceptance; the more the better. |
47 * @return value below 8 means no acceptance; the more the better. |
45 */ |
48 */ |
46 static int32 GetCargoAcceptance(TileIndex tile, CargoID cargo_type); |
49 static int32 GetCargoAcceptance(TileIndex tile, CargoID cargo_type, uint width, uint height, uint radius); |
47 }; |
50 }; |
48 |
51 |
49 #endif /* AI_TILE_HPP */ |
52 #endif /* AI_TILE_HPP */ |