|
OpenTTD Source
1.10.0-RC1
|
Public Member Functions | |
| uint32 | GetRailTotal () const |
| Get total sum of all owned track bits. More... | |
| uint32 | GetRoadTotal () const |
| Get total sum of all owned road bits. More... | |
| uint32 | GetTramTotal () const |
| Get total sum of all owned tram bits. More... | |
Data Fields | |
| uint32 | road [ROADTYPE_END] |
| Count of company owned track bits for each road type. | |
| uint32 | signal |
| Count of company owned signals. | |
| uint32 | rail [RAILTYPE_END] |
| Count of company owned track bits for each rail type. | |
| uint32 | water |
| Count of company owned track bits for canals. | |
| uint32 | station |
| Count of company owned station tiles. | |
| uint32 | airport |
| Count of company owned airports. | |
Definition at line 29 of file company_base.h.
|
inline |
Get total sum of all owned track bits.
Definition at line 38 of file company_base.h.
References RAILTYPE_BEGIN, and RAILTYPE_END.
Referenced by CompanyInfrastructureWindow::GetTotalMaintenanceCost().
| uint32 CompanyInfrastructure::GetRoadTotal | ( | ) | const |
Get total sum of all owned road bits.
Definition at line 1159 of file company_cmd.cpp.
References ROADTYPE_BEGIN, and ROADTYPE_END.
Referenced by CompanyInfrastructureWindow::GetTotalMaintenanceCost().
| uint32 CompanyInfrastructure::GetTramTotal | ( | ) | const |
Get total sum of all owned tram bits.
Definition at line 1172 of file company_cmd.cpp.
References ROADTYPE_BEGIN, and ROADTYPE_END.
Referenced by CompanyInfrastructureWindow::GetTotalMaintenanceCost().