OpenTTD NoAI API
Public Member Functions
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 AIObject

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_idThe industry to create the AITileList around.
radiusThe radius of the station you will be using.
Precondition:
AIIndustry::IsValidIndustry(industry_id).
radius > 0.