AITileList_IndustryAccepting Class Reference

Creates a list of tiles that will accept cargo for the given industry. More...

Inheritance diagram for AITileList_IndustryAccepting:

AITileList AIList

Public Member Functions

 AITileList_IndustryAccepting (IndustryID industry_id, int radius)

Detailed Description

Creates a list of tiles that will accept cargo for the given industry.

Note:
If a simular industry is close, it might happen that this industry receives the cargo.

Constructor & Destructor Documentation

AITileList_IndustryAccepting::AITileList_IndustryAccepting ( IndustryID  industry_id,
int  radius 
)

Parameters:
industry_id The industry to create the AITileList around.
radius The coverage radius of the station type you will be using.
Precondition:
AIIndustry::IsValidIndustry(industry_id).

radius > 0.

Note:
A station part built on any of the returned tiles will give you coverage.


Generated on Thu Jun 30 21:53:52 2016 for OpenTTD NoAI API by  doxygen 1.5.6