OpenTTD Source 20241224-master-gee860a5c8e
|
Data that needs to be stored for company news messages. More...
#include <news_type.h>
Public Member Functions | |
CompanyNewsInformation (const struct Company *c, const struct Company *other=nullptr) | |
Fill the CompanyNewsInformation struct with the required data. | |
Data Fields | |
std::string | company_name |
The name of the company. | |
std::string | president_name |
The name of the president. | |
std::string | other_company_name |
The name of the company taking over this one. | |
uint32_t | face |
The face of the president. | |
Colours | colour |
The colour related to the company. | |
Data that needs to be stored for company news messages.
The problem with company news messages are the custom name of the companies and the fact that the company data is reset, resulting in wrong names and such.
Definition at line 153 of file news_type.h.
CompanyNewsInformation::CompanyNewsInformation | ( | const struct Company * | c, |
const struct Company * | other = nullptr |
||
) |
Fill the CompanyNewsInformation struct with the required data.
c | the current company. |
other | the other company (use nullptr if not relevant). |
Definition at line 818 of file company_cmd.cpp.
References CompanyProperties::colour, colour, company_name, CompanyProperties::face, face, GetString(), Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem< Tpool >::index, other_company_name, president_name, and SetDParam().
Colours CompanyNewsInformation::colour |
The colour related to the company.
Definition at line 159 of file news_type.h.
Referenced by CompanyNewsInformation().
std::string CompanyNewsInformation::company_name |
The name of the company.
Definition at line 154 of file news_type.h.
Referenced by CompanyNewsInformation().
uint32_t CompanyNewsInformation::face |
The face of the president.
Definition at line 158 of file news_type.h.
Referenced by CompanyNewsInformation().
std::string CompanyNewsInformation::other_company_name |
The name of the company taking over this one.
Definition at line 156 of file news_type.h.
Referenced by CompanyNewsInformation().
std::string CompanyNewsInformation::president_name |
The name of the president.
Definition at line 155 of file news_type.h.
Referenced by CompanyNewsInformation(), and NewsWindow::OnResize().