OpenTTD Source  14.0-beta1
CompanyInfrastructure Struct Reference

Public Member Functions

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

uint32_t road [ROADTYPE_END]
 Count of company owned track bits for each road type.
 
uint32_t signal
 Count of company owned signals.
 
uint32_t rail [RAILTYPE_END]
 Count of company owned track bits for each rail type.
 
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.
 

Detailed Description

Definition at line 32 of file company_base.h.

Member Function Documentation

◆ GetRoadTotal()

uint32_t CompanyInfrastructure::GetRoadTotal ( ) const

Get total sum of all owned road bits.

Returns
Combined total road road bits.

Definition at line 1206 of file company_cmd.cpp.

References ROADTYPE_BEGIN, and ROADTYPE_END.

Referenced by CompanyInfrastructureWindow::GetTotalMaintenanceCost().

◆ GetTramTotal()

uint32_t CompanyInfrastructure::GetTramTotal ( ) const

Get total sum of all owned tram bits.

Returns
Combined total of tram road bits.

Definition at line 1219 of file company_cmd.cpp.

References ROADTYPE_BEGIN, and ROADTYPE_END.

Referenced by CompanyInfrastructureWindow::GetTotalMaintenanceCost().


The documentation for this struct was generated from the following files: