|
OpenTTD GameScript API 20251104-master-g6d5f150b3d
|
Class that handles all company infrastructure related functions. More...
#include <script_infrastructure.hpp>
Public Types | |
| enum | Infrastructure { INFRASTRUCTURE_RAIL , INFRASTRUCTURE_SIGNALS , INFRASTRUCTURE_ROAD , INFRASTRUCTURE_CANAL , INFRASTRUCTURE_STATION , INFRASTRUCTURE_AIRPORT } |
| Infrastructure categories. More... | |
Static Public Member Functions | |
| static int | GetRailPieceCount (GSCompany::CompanyID company, GSRail::RailType railtype) |
| Return the number of rail pieces of a specific rail type for a company. | |
| static int | GetRoadPieceCount (GSCompany::CompanyID company, GSRoad::RoadType roadtype) |
| Return the number of road pieces of a specific road type for a company. | |
| static int | GetInfrastructurePieceCount (GSCompany::CompanyID company, Infrastructure infra_type) |
| Return the number of pieces of an infrastructure category for a company. | |
| static Money | GetMonthlyRailCosts (GSCompany::CompanyID company, GSRail::RailType railtype) |
| Return the monthly maintenance costs of a specific rail type for a company. | |
| static Money | GetMonthlyRoadCosts (GSCompany::CompanyID company, GSRoad::RoadType roadtype) |
| Return the monthly maintenance costs of a specific road type for a company. | |
| static Money | GetMonthlyInfrastructureCosts (GSCompany::CompanyID company, Infrastructure infra_type) |
| Return the monthly maintenance costs of an infrastructure category for a company. | |
Class that handles all company infrastructure related functions.
Infrastructure categories.
|
static |
Return the number of pieces of an infrastructure category for a company.
| company | The company to get the count for. |
| infra_type | Infrastructure category to get the cost of. |
|
static |
Return the monthly maintenance costs of an infrastructure category for a company.
| company | The company to get the monthly cost for. |
| infra_type | Infrastructure category to get the cost of. |
|
static |
Return the monthly maintenance costs of a specific rail type for a company.
| company | The company to get the monthly cost for. |
| railtype | Rail type to get the cost of. |
|
static |
Return the monthly maintenance costs of a specific road type for a company.
| company | The company to get the monthly cost for. |
| roadtype | Road type to get the cost of. |
|
static |
Return the number of rail pieces of a specific rail type for a company.
| company | The company to get the count for. |
| railtype | Rail type to get the count of. |
|
static |
Return the number of road pieces of a specific road type for a company.
| company | The company to get the count for. |
| roadtype | Road type to get the count of. |