OpenTTD Source 20241224-master-gf74b0cf984
CompanyEconomyEntry Struct Reference

Statistics about the economy. More...

#include <company_base.h>

Data Fields

Money income
 The amount of income.
 
Money expenses
 The amount of expenses.
 
CargoArray delivered_cargo {}
 The amount of delivered cargo.
 
int32_t performance_history
 Company score (scale 0-1000)
 
Money company_value
 The value of the company.
 

Detailed Description

Statistics about the economy.

Definition at line 24 of file company_base.h.

Field Documentation

◆ company_value

Money CompanyEconomyEntry::company_value

The value of the company.

Definition at line 29 of file company_base.h.

Referenced by UpdateCompanyRatingAndValue().

◆ delivered_cargo

CargoArray CompanyEconomyEntry::delivered_cargo {}

The amount of delivered cargo.

Definition at line 27 of file company_base.h.

Referenced by DeliverGoods(), and UpdateCompanyRatingAndValue().

◆ expenses

Money CompanyEconomyEntry::expenses

The amount of expenses.

Definition at line 26 of file company_base.h.

Referenced by CalculateHostileTakeoverValue(), SubtractMoneyFromAnyCompany(), and UpdateCompanyRatingAndValue().

◆ income

Money CompanyEconomyEntry::income

The amount of income.

Definition at line 25 of file company_base.h.

Referenced by CalculateHostileTakeoverValue(), SubtractMoneyFromAnyCompany(), and UpdateCompanyRatingAndValue().

◆ performance_history


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