diff options
author | michi_cc <michi_cc@openttd.org> | 2011-12-03 23:40:08 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2011-12-03 23:40:08 +0000 |
commit | 6083d6ffb4b10ffd6e23e27183000cdb190d1ac7 (patch) | |
tree | 1b7814e1bacced2421db555655de3f3ade29f2c7 /src/company_base.h | |
parent | eadbb5764b9a0e1edbd50706c824063c3cc2836d (diff) | |
download | openttd-6083d6ffb4b10ffd6e23e27183000cdb190d1ac7.tar.xz |
(svn r23410) -Add: A window with a detailed overview over the infrastructure of a company.
Diffstat (limited to 'src/company_base.h')
-rw-r--r-- | src/company_base.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/company_base.h b/src/company_base.h index bf655ea37..f44ae8c22 100644 --- a/src/company_base.h +++ b/src/company_base.h @@ -30,6 +30,15 @@ struct CompanyEconomyEntry { Money company_value; }; +struct CompanyInfrastructure { + 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. +}; + typedef Pool<Company, CompanyByte, 1, MAX_COMPANIES> CompanyPool; extern CompanyPool _company_pool; @@ -108,6 +117,8 @@ struct Company : CompanyPool::PoolItem<&_company_pool>, CompanyProperties { GroupStatistics group_all[VEH_COMPANY_END]; ///< NOSAVE: Statistics for the ALL_GROUP group. GroupStatistics group_default[VEH_COMPANY_END]; ///< NOSAVE: Statistics for the DEFAULT_GROUP group. + CompanyInfrastructure infrastructure; ///< NOSAVE: Counts of company owned infrastructure. + /** * Is this company a valid company, controlled by the computer (a NoAI program)? * @param index Index in the pool. |