OpenTTD GameScript API
20241118-master-gb8f3d0dd68
|
Class that handles all industry-type related functions. More...
Public Types | |
enum | SpecialIndustryType { INDUSTRYTYPE_UNKNOWN , INDUSTRYTYPE_TOWN } |
Special IndustryTypes. More... | |
Static Public Member Functions | |
static bool | IsValidIndustryType (IndustryType industry_type) |
Checks whether the given industry-type is valid. More... | |
static string | GetName (IndustryType industry_type) |
Get the name of an industry-type. More... | |
static GSList * | GetProducedCargo (IndustryType industry_type) |
Get a list of CargoID possible produced by this industry-type. More... | |
static GSList * | GetAcceptedCargo (IndustryType industry_type) |
Get a list of CargoID accepted by this industry-type. More... | |
static bool | IsRawIndustry (IndustryType industry_type) |
Is this industry type a raw industry? Raw industries usually produce cargo without any prerequisites. More... | |
static bool | IsProcessingIndustry (IndustryType industry_type) |
Is this industry type a processing industry? Processing industries usually produce cargo when delivered with input cargo. More... | |
static bool | ProductionCanIncrease (IndustryType industry_type) |
Can the production of this industry increase? More... | |
static Money | GetConstructionCost (IndustryType industry_type) |
Get the cost for building this industry-type. More... | |
static bool | CanBuildIndustry (IndustryType industry_type) |
Can you build this type of industry? More... | |
static bool | CanProspectIndustry (IndustryType industry_type) |
Can you prospect this type of industry? More... | |
static bool | BuildIndustry (IndustryType industry_type, TileIndex tile) |
Build an industry of the specified type. More... | |
static bool | ProspectIndustry (IndustryType industry_type) |
Prospect an industry of this type. More... | |
static bool | IsBuiltOnWater (IndustryType industry_type) |
Is this type of industry built on water. More... | |
static bool | HasHeliport (IndustryType industry_type) |
Does this type of industry have a heliport? More... | |
static bool | HasDock (IndustryType industry_type) |
Does this type of industry have a dock? More... | |
static IndustryType | ResolveNewGRFID (int grfid, int grf_local_id) |
Get a specific industry-type from a grf. More... | |
Class that handles all industry-type related functions.
Special IndustryTypes.
Enumerator | |
---|---|
INDUSTRYTYPE_UNKNOWN | Unknown/unspecific industrytype. (Usable for GSRail::BuildNewGRFRailStation()) |
INDUSTRYTYPE_TOWN | No industry, but town. (Usable for GSRail::BuildNewGRFRailStation()) |
|
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 |
Can you build this type of industry?
industry_type | The type of the industry. |
|
static |
Can you prospect this type of industry?
industry_type | The type of the industry. |
|
static |
Get a list of CargoID accepted by this industry-type.
industry_type | The type to get the CargoIDs for. |
|
static |
Get the cost for building this industry-type.
industry_type | The type of the industry. |
|
static |
Get the name of an industry-type.
industry_type | The type to get the name for. |
|
static |
Get a list of CargoID possible produced by this industry-type.
industry_type | The type to get the CargoIDs for. |
|
static |
Does this type of industry have a dock?
industry_type | The type of the industry. |
|
static |
Does this type of industry have a heliport?
industry_type | The type of the industry. |
|
static |
Is this type of industry built on water.
industry_type | The type of the industry. |
|
static |
Is this industry type a processing industry? Processing industries usually produce cargo when delivered with input cargo.
("Usually" means that advanced NewGRF industry concepts might not fit the "raw"/"processing" classification, so it's up to the interpretation of the NewGRF author.)
industry_type | The type of the industry. |
|
static |
Is this industry type a raw industry? Raw industries usually produce cargo without any prerequisites.
("Usually" means that advanced NewGRF industry concepts might not fit the "raw"/"processing" classification, so it's up to the interpretation of the NewGRF author.)
industry_type | The type of the industry. |
|
static |
Checks whether the given industry-type is valid.
industry_type | The type check. |
|
static |
Can the production of this industry increase?
industry_type | The type of the industry. |
|
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. |
|
static |
Get a specific industry-type from a grf.
grfid | The ID of the NewGRF. |
grf_local_id | The ID of the industry, local to the NewGRF. |