(svn r19773) -Add: [NoAI] AIIndustry::GetIndustryID(TileIndex)

This commit is contained in:
yexo
2010-05-09 15:59:30 +00:00
parent 677f149b13
commit 69c46904b6
6 changed files with 22 additions and 0 deletions

View File

@@ -36,6 +36,16 @@ public:
*/
static bool IsValidIndustry(IndustryID industry_id);
/**
* Get the IndustryID of a tile, if there is an industry.
* @param tile The tile to find the IndustryID of.
* @return IndustryID of the industry.
* @post Use IsValidIndustry() to see if the industry is valid.
* @note GetIndustryID will return an invalid IndustryID for the
* station tile of industries with a dock/heliport.
*/
static IndustryID GetIndustryID(TileIndex tile);
/**
* Get the name of the industry.
* @param industry_id The industry to get the name of.