140 std::unique_ptr<NewsAllocatedData>
data;
Type (helpers) for enums.
#define DECLARE_ENUM_AS_BIT_SET(enum_type)
Operators to allow to work with enum as with type safe bit set in C++.
Types related to the graphics and/or input devices.
@ NT_INDUSTRY_NOBODY
Other industry production changes.
@ NT_INDUSTRY_COMPANY
Production changes of industry serviced by local company.
@ NT_INDUSTRY_OPEN
Opening of industries.
@ NT_NEW_VEHICLES
New vehicle has become available.
@ NT_ECONOMY
Economic changes (recession, industry up/dowm)
@ NT_ACCEPTANCE
A type of cargo is (no longer) accepted.
@ NT_END
end-of-array marker
@ NT_INDUSTRY_CLOSE
Closing of industries.
@ NT_ACCIDENT_OTHER
An accident or disaster has occurred.
@ NT_SUBSIDIES
News about subsidies (announcements, expirations, acceptance)
@ NT_ARRIVAL_COMPANY
First vehicle arrived for company.
@ NT_ARRIVAL_OTHER
First vehicle arrived for competitor.
@ NT_INDUSTRY_OTHER
Production changes of industry serviced by competitor(s)
@ NT_ACCIDENT
An accident or disaster has occurred.
@ NT_ADVICE
Bits of news about vehicles of the company.
@ NT_COMPANY_INFO
Company info (new companies, bankruptcy messages)
@ NT_GENERAL
General news (from towns)
NewsReferenceType
References to objects in news.
@ NR_TILE
Reference tile. Scroll to tile when clicking on the news.
@ NR_STATION
Reference station. Scroll to station when clicking on the news. Delete news when station is deleted.
@ NR_ENGINE
Reference engine.
@ NR_TOWN
Reference town. Scroll to town when clicking on the news.
@ NR_INDUSTRY
Reference industry. Scroll to industry when clicking on the news. Delete news when industry is delete...
@ NR_NONE
Empty reference.
@ NR_VEHICLE
Reference vehicle. Scroll to vehicle when clicking on the news. Delete news when vehicle is deleted.
NewsContainer::const_iterator NewsIterator
Iterator type for news items.
NewsDisplay
News display options.
@ ND_OFF
Only show a reminder in the status bar.
std::list< NewsItem > NewsContainer
Container type for storing news items.
NewsFlag
Various OR-able news-item flags.
@ NF_NO_TRANSPARENT
Bit value for disabling transparency.
@ NF_SHADE
Bit value for enabling shading.
@ NFB_NO_TRANSPARENT
News item disables transparency in the viewport.
@ NFB_INCOLOUR
News item is shown in colour (otherwise it is shown in black & white).
@ NFB_SHADE
News item uses shaded colours.
@ NF_VEHICLE_PARAM0
Bit value for specifying that string param 0 contains a vehicle ID. (special autoreplace behaviour)
@ NFB_WINDOW_LAYOUT
First bit for window layout.
@ NFB_VEHICLE_PARAM0
String param 0 contains a vehicle ID. (special autoreplace behaviour)
@ NF_THIN
Thin news item. (Newspaper with headline and viewport)
@ NF_COMPANY
Company news item. (Newspaper with face)
@ NF_NORMAL
Normal news item. (Newspaper with text only)
@ NF_VEHICLE
Vehicle news item. (new engine available)
@ NF_INCOLOUR
Bit value for coloured news.
@ NFB_WINDOW_LAYOUT_COUNT
Number of bits for window layout.
@ NF_SMALL
Small news item. (Information window with text and viewport)
SoundFx
Sound effects from baseset.
Types related to strings.
uint32_t StringID
Numeric value that represents a string, independent of the selected language.
Container for any custom data that must be deleted after the news item has reached end-of-life.
Information about a single item of news.
TimerGameCalendar::Date date
Calendar date to show for the news.
std::unique_ptr< NewsAllocatedData > data
Custom data for the news item that will be deallocated (deleted) when the news item has reached its e...
std::vector< StringParameterData > params
Parameters for string resolving.
NewsType type
Type of the news.
uint32_t ref1
Reference 1 to some object: Used for a possible viewport, scrolling after clicking on the news,...
NewsReferenceType reftype1
Type of ref1.
TimerGameEconomy::Date economy_date
Economy date of the news item, never shown but used to calculate age.
uint32_t ref2
Reference 2 to some object: Used for scrolling after clicking on the news, and for deleting the news ...
StringID string_id
Message text.
NewsFlag flags
NewsFlags bits.
NewsReferenceType reftype2
Type of ref2.
NewsDisplay GetDisplay() const
Return the news display option.
const char *const name
Name.
NewsTypeData(const char *name, uint8_t age, SoundFx sound)
Construct this entry.
const SoundFx sound
Sound.
const uint8_t age
Maximum age of news items (in days)
Templated helper to make a type-safe 'typedef' representing a single POD value.
Definition of the game-calendar-timer.
Definition of the game-economy-timer.