|
OpenTTD NoAI API
|
Class that handles all industry-type related functions. More...
Public Types | |
| enum | SpecialIndustryType { INDUSTRYTYPE_UNKNOWN = 0xFE, INDUSTRYTYPE_TOWN = 0xFF } |
| Special IndustryTypes. More... | |
Static Public Member Functions | |
| static bool | IsValidIndustryType (IndustryType industry_type) |
| Checks whether the given industry-type is valid. | |
| static char * | GetName (IndustryType industry_type) |
| Get the name of an industry-type. | |
| static AIList * | GetProducedCargo (IndustryType industry_type) |
| Get a list of CargoID possible produced by this industry-type. | |
| static AIList * | GetAcceptedCargo (IndustryType industry_type) |
| Get a list of CargoID accepted by this industry-type. | |
| static bool | IsRawIndustry (IndustryType industry_type) |
| Is this industry type a raw industry? | |
| static bool | ProductionCanIncrease (IndustryType industry_type) |
| Can the production of this industry increase? | |
| static Money | GetConstructionCost (IndustryType industry_type) |
| Get the cost for building this industry-type. | |
| static bool | CanBuildIndustry (IndustryType industry_type) |
| Can you build this type of industry? | |
| static bool | CanProspectIndustry (IndustryType industry_type) |
| Can you prospect this type of industry? | |
| static bool | BuildIndustry (IndustryType industry_type, TileIndex tile) |
| Build an industry of the specified type. | |
| static bool | ProspectIndustry (IndustryType industry_type) |
| Prospect an industry of this type. | |
| static bool | IsBuiltOnWater (IndustryType industry_type) |
| Is this type of industry built on water. | |
| static bool | HasHeliport (IndustryType industry_type) |
| Does this type of industry have a heliport? | |
| static bool | HasDock (IndustryType industry_type) |
| Does this type of industry have a dock? | |
Class that handles all industry-type related functions.
Special IndustryTypes.
| INDUSTRYTYPE_UNKNOWN |
Unknown/unspecific industrytype. (Usable for AIRail::BuildNewGRFRailStation()) |
| INDUSTRYTYPE_TOWN |
No industry, but town. (Usable for AIRail::BuildNewGRFRailStation()) |
| static bool AIIndustryType::BuildIndustry | ( | IndustryType | industry_type, |
| TileIndex | tile | ||
| ) | [static] |
Build an industry of the specified type.
| industry_type | The type of the industry to build. |
| tile | The tile to build the industry on. |
| static bool AIIndustryType::CanBuildIndustry | ( | IndustryType | industry_type | ) | [static] |
Can you build this type of industry?
| industry_type | The type of the industry. |
| static bool AIIndustryType::CanProspectIndustry | ( | IndustryType | industry_type | ) | [static] |
Can you prospect this type of industry?
| industry_type | The type of the industry. |
| static AIList* AIIndustryType::GetAcceptedCargo | ( | IndustryType | industry_type | ) | [static] |
Get a list of CargoID accepted by this industry-type.
| industry_type | The type to get the CargoIDs for. |
| static Money AIIndustryType::GetConstructionCost | ( | IndustryType | industry_type | ) | [static] |
Get the cost for building this industry-type.
| industry_type | The type of the industry. |
| static char* AIIndustryType::GetName | ( | IndustryType | industry_type | ) | [static] |
Get the name of an industry-type.
| industry_type | The type to get the name for. |
| static AIList* AIIndustryType::GetProducedCargo | ( | IndustryType | industry_type | ) | [static] |
Get a list of CargoID possible produced by this industry-type.
| industry_type | The type to get the CargoIDs for. |
| static bool AIIndustryType::HasDock | ( | IndustryType | industry_type | ) | [static] |
Does this type of industry have a dock?
| industry_type | The type of the industry. |
| static bool AIIndustryType::HasHeliport | ( | IndustryType | industry_type | ) | [static] |
Does this type of industry have a heliport?
| industry_type | The type of the industry. |
| static bool AIIndustryType::IsBuiltOnWater | ( | IndustryType | industry_type | ) | [static] |
Is this type of industry built on water.
| industry_type | The type of the industry. |
| static bool AIIndustryType::IsRawIndustry | ( | IndustryType | industry_type | ) | [static] |
Is this industry type a raw industry?
| industry_type | The type of the industry. |
| static bool AIIndustryType::IsValidIndustryType | ( | IndustryType | industry_type | ) | [static] |
Checks whether the given industry-type is valid.
| industry_type | The type check. |
| static bool AIIndustryType::ProductionCanIncrease | ( | IndustryType | industry_type | ) | [static] |
Can the production of this industry increase?
| industry_type | The type of the industry. |
| static bool AIIndustryType::ProspectIndustry | ( | IndustryType | industry_type | ) | [static] |
Prospect an industry of this type.
Prospecting an industries let the game try to create an industry on a random place on the map.
| industry_type | The type of the industry. |
1.7.5