src/ai/api/ai_tile.hpp
branchnoai
changeset 9658 e7675771bca4
parent 9619 6e81cec30a2b
child 9698 1d50fe99b7e9
equal deleted inserted replaced
9657:f2c6e332d8bc 9658:e7675771bca4
    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 */