news_type.h File Reference
Types related to news.
More...
#include "date_type.h"
#include "strings_type.h"
#include "sound_type.h"
Go to the source code of this file.
|
Data Structures |
struct | NewsTypeData |
| Per-NewsType data. More...
|
struct | NewsItem |
struct | CompanyNewsInformation |
| Data that needs to be stored for company news messages. More...
|
Enumerations |
enum | NewsType {
NT_ARRIVAL_COMPANY,
NT_ARRIVAL_OTHER,
NT_ACCIDENT,
NT_COMPANY_INFO,
NT_INDUSTRY_OPEN,
NT_INDUSTRY_CLOSE,
NT_ECONOMY,
NT_INDUSTRY_COMPANY,
NT_INDUSTRY_OTHER,
NT_INDUSTRY_NOBODY,
NT_ADVICE,
NT_NEW_VEHICLES,
NT_ACCEPTANCE,
NT_SUBSIDIES,
NT_GENERAL,
NT_END
} |
| Type of news. More...
|
enum | NewsSubtype {
NS_ARRIVAL_COMPANY,
NS_ARRIVAL_OTHER,
NS_ACCIDENT_TILE,
NS_ACCIDENT_VEHICLE,
NS_COMPANY_TROUBLE,
NS_COMPANY_MERGER,
NS_COMPANY_BANKRUPT,
NS_COMPANY_NEW,
NS_INDUSTRY_OPEN,
NS_INDUSTRY_CLOSE,
NS_ECONOMY,
NS_INDUSTRY_COMPANY,
NS_INDUSTRY_OTHER,
NS_INDUSTRY_NOBODY,
NS_ADVICE,
NS_NEW_VEHICLES,
NS_ACCEPTANCE,
NS_SUBSIDIES,
NS_GENERAL,
NS_END
} |
| News subtypes. More...
|
enum | NewsMode { NM_SMALL = 0,
NM_NORMAL = 1,
NM_THIN = 2
} |
| News mode. More...
|
enum | NewsFlag {
NF_NONE = 0,
NF_VIEWPORT = (1 << 1),
NF_TILE = (1 << 2),
NF_VEHICLE = (1 << 3),
NF_INCOLOUR = (1 << 5),
NF_TILE2 = (1 << 6)
} |
| Various OR-able news-item flags. More...
|
enum | NewsDisplay { ND_OFF,
ND_SUMMARY,
ND_FULL
} |
| News display options. More...
|
Functions |
| DECLARE_ENUM_AS_BIT_SET (NewsFlag) |
Detailed Description
Types related to news.
Definition in file news_type.h.
Enumeration Type Documentation
News display options.
- Enumerator:
-
ND_OFF |
Only show a reminder in the status bar. |
ND_SUMMARY |
Show ticker. |
ND_FULL |
Show newspaper. |
Definition at line 87 of file news_type.h.
Various OR-able news-item flags.
note: NF_INCOLOUR is set automatically if needed
- Enumerator:
-
NF_NONE |
No flag is set. |
NF_VIEWPORT |
Does the news message have a viewport? (ingame picture of happening). |
NF_TILE |
When clicked on the news message scroll to a given tile? Tile is in data_a. |
NF_VEHICLE |
When clicked on the message scroll to the vehicle? VehicleID is in data_a. |
NF_INCOLOUR |
Show the newsmessage in colour, otherwise it defaults to black & white. |
NF_TILE2 |
There is a second tile to scroll to; tile is in data_b. |
Definition at line 73 of file news_type.h.
News mode.
- Enumerator:
-
NM_SMALL |
Show only a small popup informing us about vehicle age for example. |
NM_NORMAL |
Show a simple news message (height 170 pixels). |
NM_THIN |
Show a simple news message (height 130 pixels). |
Definition at line 63 of file news_type.h.
News subtypes.
- Enumerator:
-
NS_ARRIVAL_COMPANY |
NT_ARRIVAL_COMPANY. |
NS_ARRIVAL_OTHER |
NT_ARRIVAL_OTHER. |
NS_ACCIDENT_TILE |
NT_ACCIDENT (tile). |
NS_ACCIDENT_VEHICLE |
NT_ACCIDENT (vehicle). |
NS_COMPANY_TROUBLE |
NT_COMPANY_INFO (trouble). |
NS_COMPANY_MERGER |
NT_COMPANY_INFO (merger). |
NS_COMPANY_BANKRUPT |
NT_COMPANY_INFO (bankrupt). |
NS_COMPANY_NEW |
NT_COMPANY_INFO (new company). |
NS_INDUSTRY_OPEN |
NT_INDUSTRY_OPEN. |
NS_INDUSTRY_CLOSE |
NT_INDUSTRY_CLOSE. |
NS_ECONOMY |
NT_ECONOMY. |
NS_INDUSTRY_COMPANY |
NT_INDUSTRY_COMPANY. |
NS_INDUSTRY_OTHER |
NT_INDUSTRY_OTHER. |
NS_INDUSTRY_NOBODY |
NT_INDUSTRY_NOBODY. |
NS_ADVICE |
NT_ADVICE. |
NS_NEW_VEHICLES |
NT_NEW_VEHICLES. |
NS_ACCEPTANCE |
NT_ACCEPTANCE. |
NS_SUBSIDIES |
NT_SUBSIDIES. |
NS_GENERAL |
NT_GENERAL. |
NS_END |
end-of-array marker |
Definition at line 37 of file news_type.h.
Type of news.
- Enumerator:
-
NT_ARRIVAL_COMPANY |
Cargo arrived for company. |
NT_ARRIVAL_OTHER |
Cargo arrived for competitor. |
NT_ACCIDENT |
An accident or disaster has occurred. |
NT_COMPANY_INFO |
Company info (new companies, bankrupcy messages). |
NT_INDUSTRY_OPEN |
Opening of industries. |
NT_INDUSTRY_CLOSE |
Closing of industries. |
NT_ECONOMY |
Economic changes (recession, industry up/dowm). |
NT_INDUSTRY_COMPANY |
Production changes of industry serviced by local company. |
NT_INDUSTRY_OTHER |
Production changes of industry serviced by competitor(s). |
NT_INDUSTRY_NOBODY |
Other industry production changes. |
NT_ADVICE |
Bits of news about vehicles of the company. |
NT_NEW_VEHICLES |
New vehicle has become available. |
NT_ACCEPTANCE |
A type of cargo is (no longer) accepted. |
NT_SUBSIDIES |
News about subsidies (announcements, expirations, acceptance). |
NT_GENERAL |
General news (from towns). |
NT_END |
end-of-array marker |
Definition at line 15 of file news_type.h.