src/ai/api/ai_industry.hpp
branchnoai
changeset 9649 bc8c06513f5b
parent 9596 8af5a1399842
child 9650 7e5e1a7ecbff
equal deleted inserted replaced
9648:760b7b504e37 9649:bc8c06513f5b
    48 	 * @note the returned name must be free'd (C++ only).
    48 	 * @note the returned name must be free'd (C++ only).
    49 	 */
    49 	 */
    50 	char *GetName(IndustryID industry_id);
    50 	char *GetName(IndustryID industry_id);
    51 
    51 
    52 	/**
    52 	/**
       
    53 	 * Gets the production of a cargo of the industry.
       
    54 	 * @param industry_id the index of the industry.
       
    55 	 * @param cargo_id the index of the cargo.
       
    56 	 * @pre industry_id has to be valid (use IsValidIndustry()).
       
    57 	 * @pre cargo_id has to be valid (use IsValidCargo()).
       
    58 	 * @return the production of the cargo for this industry.
       
    59 	 */
       
    60 	static TileIndex GetProduction(IndustryID industry_id, CargoID cargo_id);
       
    61 
       
    62 	/**
    53 	 * Gets the location of the industry.
    63 	 * Gets the location of the industry.
    54 	 * @param industry_id the location of the industry.
    64 	 * @param industry_id the index of the industry.
    55 	 * @pre industry_id has to be valid (use IsValidIndustry()).
    65 	 * @pre industry_id has to be valid (use IsValidIndustry()).
    56 	 * @return the location of the industry.
    66 	 * @return the location of the industry.
    57 	 * @post return value is always positive and below AIMap::GetMapSize().
    67 	 * @post return value is always positive and below AIMap::GetMapSize().
    58 	 */
    68 	 */
    59 	TileIndex GetLocation(IndustryID industry_id);
    69 	static TileIndex GetLocation(IndustryID industry_id);
    60 };
    70 };
    61 
    71 
    62 #endif /* AI_INDUSTRY_HPP */
    72 #endif /* AI_INDUSTRY_HPP */