OpenTTD Source
20241120-master-g6d3adc6169
|
Types related to news. More...
#include "core/enum_type.hpp"
#include "gfx_type.h"
#include "timer/timer_game_calendar.h"
#include "timer/timer_game_economy.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 | NewsAllocatedData |
Container for any custom data that must be deleted after the news item has reached end-of-life. More... | |
struct | NewsItem |
Information about a single item of news. More... | |
struct | CompanyNewsInformation |
Data that needs to be stored for company news messages. More... | |
Typedefs | |
using | NewsContainer = std::list< NewsItem > |
Container type for storing news items. | |
using | NewsIterator = NewsContainer::const_iterator |
Iterator type for news items. | |
Types related to news.
Definition in file news_type.h.
enum NewsDisplay |
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 91 of file news_type.h.
enum NewsFlag |
Various OR-able news-item flags.
Enumerator | |
---|---|
NFB_INCOLOUR | News item is shown in colour (otherwise it is shown in black & white). |
NFB_NO_TRANSPARENT | News item disables transparency in the viewport. |
NFB_SHADE | News item uses shaded colours. |
NFB_WINDOW_LAYOUT | First bit for window layout. |
NFB_WINDOW_LAYOUT_COUNT | Number of bits for window layout. |
NFB_VEHICLE_PARAM0 | String param 0 contains a vehicle ID. (special autoreplace behaviour) |
NF_INCOLOUR | Bit value for coloured news. |
NF_NO_TRANSPARENT | Bit value for disabling transparency. |
NF_SHADE | Bit value for enabling shading. |
NF_VEHICLE_PARAM0 | Bit value for specifying that string param 0 contains a vehicle ID. (special autoreplace behaviour) |
NF_THIN | Thin news item. (Newspaper with headline and viewport) |
NF_SMALL | Small news item. (Information window with text and viewport) |
NF_NORMAL | Normal news item. (Newspaper with text only) |
NF_VEHICLE | Vehicle news item. (new engine available) |
NF_COMPANY | Company news item. (Newspaper with face) |
Definition at line 66 of file news_type.h.
enum NewsReferenceType : uint8_t |
References to objects in news.
Definition at line 52 of file news_type.h.
enum NewsType : uint8_t |
Type of news.
Enumerator | |
---|---|
NT_ARRIVAL_COMPANY | First vehicle arrived for company. |
NT_ARRIVAL_OTHER | First vehicle arrived for competitor. |
NT_ACCIDENT | An accident or disaster has occurred. |
NT_ACCIDENT_OTHER | An accident or disaster has occurred. |
NT_COMPANY_INFO | Company info (new companies, bankruptcy 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 23 of file news_type.h.