diff -r 760b7b504e37 -r bc8c06513f5b src/ai/api/ai_industry.hpp --- a/src/ai/api/ai_industry.hpp Fri Jul 13 13:49:39 2007 +0000 +++ b/src/ai/api/ai_industry.hpp Fri Jul 13 14:14:26 2007 +0000 @@ -50,13 +50,23 @@ char *GetName(IndustryID industry_id); /** + * Gets the production of a cargo of the industry. + * @param industry_id the index of the industry. + * @param cargo_id the index of the cargo. + * @pre industry_id has to be valid (use IsValidIndustry()). + * @pre cargo_id has to be valid (use IsValidCargo()). + * @return the production of the cargo for this industry. + */ + static TileIndex GetProduction(IndustryID industry_id, CargoID cargo_id); + + /** * Gets the location of the industry. - * @param industry_id the location of the industry. + * @param industry_id the index of the industry. * @pre industry_id has to be valid (use IsValidIndustry()). * @return the location of the industry. * @post return value is always positive and below AIMap::GetMapSize(). */ - TileIndex GetLocation(IndustryID industry_id); + static TileIndex GetLocation(IndustryID industry_id); }; #endif /* AI_INDUSTRY_HPP */