OpenTTD Source
20241108-master-g80f628063a
|
Public Member Functions | |
auto | operator<=> (const CompanyInfrastructure &) const =default |
uint32_t | GetRailTotal () const |
Get total sum of all owned track bits. | |
uint32_t | GetRoadTotal () const |
Get total sum of all owned road bits. More... | |
uint32_t | GetTramTotal () const |
Get total sum of all owned tram bits. More... | |
Data Fields | |
std::array< uint32_t, RAILTYPE_END > | rail {} |
Count of company owned track bits for each rail type. | |
std::array< uint32_t, ROADTYPE_END > | road {} |
Count of company owned track bits for each road type. | |
uint32_t | signal |
Count of company owned signals. | |
uint32_t | water |
Count of company owned track bits for canals. | |
uint32_t | station |
Count of company owned station tiles. | |
uint32_t | airport |
Count of company owned airports. | |
Definition at line 32 of file company_base.h.
uint32_t CompanyInfrastructure::GetRoadTotal | ( | ) | const |
Get total sum of all owned road bits.
Definition at line 1264 of file company_cmd.cpp.
References ROADTYPE_BEGIN, and ROADTYPE_END.
Referenced by CompanyInfrastructureWindow::GetTotalMaintenanceCost().
uint32_t CompanyInfrastructure::GetTramTotal | ( | ) | const |
Get total sum of all owned tram bits.
Definition at line 1277 of file company_cmd.cpp.
References ROADTYPE_BEGIN, and ROADTYPE_END.
Referenced by CompanyInfrastructureWindow::GetTotalMaintenanceCost().