OpenTTD
Public Member Functions | Data Fields
CompanyNewsInformation Struct Reference

Data that needs to be stored for company news messages. More...

#include <news_type.h>

Public Member Functions

void FillData (const struct Company *c, const struct Company *other=NULL)
 Fill the CompanyNewsInformation struct with the required data.

Data Fields

char company_name [64]
 The name of the company.
char president_name [64]
 The name of the president.
char other_company_name [64]
 The name of the company taking over this one.
uint32 face
 The face of the president.
byte colour
 The colour related to the company.

Detailed Description

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 163 of file news_type.h.

Member Function Documentation

void CompanyNewsInformation::FillData ( const struct Company c,
const struct Company other = NULL 
)

Fill the CompanyNewsInformation struct with the required data.

Parameters
cthe current company.
otherthe other company (use NULL if not relevant).

Definition at line 749 of file company_cmd.cpp.

References CompanyProperties::colour, colour, company_name, CompanyProperties::face, face, Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem< Tpool >::index, lastof, other_company_name, president_name, and SetDParam().

Referenced by CmdCompanyCtrl(), CompanyCheckBankrupt(), and GenerateCompanyName().


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