Files
@ r9464:ce84e83c962a
Branch filter:
Location: cpp/openttd-patchpack/source/src/news_type.h - annotation
r9464:ce84e83c962a
4.0 KiB
text/x-c
(svn r13384) -Update: WebTranslator2 update to 2008-06-05 08:15:43
brazilian_portuguese - 9 fixed, 6 changed by tucalipe (15)
catalan - 9 fixed by arnaullv (9)
croatian - 13 fixed by knovak (13)
czech - 33 fixed by Hadez (33)
danish - 47 fixed by ThomasA (47)
dutch - 9 fixed by habell (9)
estonian - 42 fixed, 5 changed by kristjans (47)
finnish - 5 fixed, 1 changed by kerba (6)
french - 9 fixed, 2 changed by glx (8), belugas (3)
icelandic - 75 fixed by scrooge (75)
italian - 9 fixed, 12 changed by lorenzodv (21)
korean - 76 fixed, 15 changed by leejaeuk5 (91)
portuguese - 7 fixed by izhirahider (7)
romanian - 97 fixed, 302 changed by CrystyB (399)
russian - 12 fixed by Smoky555 (12)
spanish - 12 fixed by eusebio (12)
swedish - 13 fixed by ChrillDeVille (6), daishan (7)
turkish - 39 fixed, 1 changed by jnmbk (40)
ukrainian - 10 fixed by mad (10)
brazilian_portuguese - 9 fixed, 6 changed by tucalipe (15)
catalan - 9 fixed by arnaullv (9)
croatian - 13 fixed by knovak (13)
czech - 33 fixed by Hadez (33)
danish - 47 fixed by ThomasA (47)
dutch - 9 fixed by habell (9)
estonian - 42 fixed, 5 changed by kristjans (47)
finnish - 5 fixed, 1 changed by kerba (6)
french - 9 fixed, 2 changed by glx (8), belugas (3)
icelandic - 75 fixed by scrooge (75)
italian - 9 fixed, 12 changed by lorenzodv (21)
korean - 76 fixed, 15 changed by leejaeuk5 (91)
portuguese - 7 fixed by izhirahider (7)
romanian - 97 fixed, 302 changed by CrystyB (399)
russian - 12 fixed by Smoky555 (12)
spanish - 12 fixed by eusebio (12)
swedish - 13 fixed by ChrillDeVille (6), daishan (7)
turkish - 39 fixed, 1 changed by jnmbk (40)
ukrainian - 10 fixed by mad (10)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 | r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8990:18a889871a45 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r9234:c3f7730d9a9b r9234:c3f7730d9a9b r9234:c3f7730d9a9b r9234:c3f7730d9a9b r9234:c3f7730d9a9b r9234:c3f7730d9a9b r9234:c3f7730d9a9b r9234:c3f7730d9a9b r9234:c3f7730d9a9b r9234:c3f7730d9a9b r9234:c3f7730d9a9b r9234:c3f7730d9a9b r9234:c3f7730d9a9b r9234:c3f7730d9a9b r9234:c3f7730d9a9b r9234:c3f7730d9a9b r9234:c3f7730d9a9b r9234:c3f7730d9a9b r9234:c3f7730d9a9b r9234:c3f7730d9a9b r9234:c3f7730d9a9b r9234:c3f7730d9a9b r9234:c3f7730d9a9b r9234:c3f7730d9a9b r9234:c3f7730d9a9b r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r9158:1727192e045d r8763:c2c776621d56 r8763:c2c776621d56 r9158:1727192e045d r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r9010:56ff6c523703 r9010:56ff6c523703 r9010:56ff6c523703 r9010:56ff6c523703 r9010:56ff6c523703 r9010:56ff6c523703 r9010:56ff6c523703 r9010:56ff6c523703 r9010:56ff6c523703 r8990:18a889871a45 r8990:18a889871a45 r8990:18a889871a45 r8990:18a889871a45 r8990:18a889871a45 r8990:18a889871a45 r9010:56ff6c523703 r8990:18a889871a45 r8990:18a889871a45 r8763:c2c776621d56 r9406:4c195e0821ad r9406:4c195e0821ad r9199:7d9724de3af0 r8763:c2c776621d56 r9234:c3f7730d9a9b r8763:c2c776621d56 r8763:c2c776621d56 r9199:7d9724de3af0 r9199:7d9724de3af0 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 r8763:c2c776621d56 | /* $Id$ */
/** @file news_type.h Types related to news. */
#ifndef NEWS_TYPE_H
#define NEWS_TYPE_H
#include "date_type.h"
#include "strings_type.h"
#include "sound_type.h"
/**
* Type of news.
*/
enum NewsType {
NT_ARRIVAL_PLAYER, ///< Cargo arrived for player
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_OPENCLOSE, ///< Opening and closing of industries
NT_ECONOMY, ///< Economic changes (recession, industry up/dowm)
NT_INDUSTRY_PLAYER, ///< Production changes of industry serviced by local player
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 player
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
};
/**
* News subtypes.
*/
enum NewsSubtype {
NS_ARRIVAL_PLAYER, ///< NT_ARRIVAL_PLAYER
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_OPENCLOSE, ///< NT_OPENCLOSE
NS_ECONOMY, ///< NT_ECONOMY
NS_INDUSTRY_PLAYER, ///< NT_INDUSTRY_PLAYER
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
};
/**
* News mode.
*/
enum NewsMode {
NM_SMALL = 0, ///< Show only a small popup informing us about vehicle age for example
NM_NORMAL = 1, ///< Show a simple news message (height 170 pixels)
NM_THIN = 2, ///< Show a simple news message (height 130 pixels)
NM_CALLBACK = 3, ///< Do some special processing before displaying news message. Which callback to call is in NewsCallback
};
/**
* Various OR-able news-item flags.
* note: NF_INCOLOR is set automatically if needed
*/
enum NewsFlag {
NF_NONE = 0, ///< No flag is set.
NF_VIEWPORT = (1 << 1), ///< Does the news message have a viewport? (ingame picture of happening)
NF_TILE = (1 << 2), ///< When clicked on the news message scroll to a given tile? Tile is in data_a
NF_VEHICLE = (1 << 3), ///< When clicked on the message scroll to the vehicle? VehicleID is in data_a
NF_INCOLOR = (1 << 5), ///< Show the newsmessage in colour, otherwise it defaults to black & white
NF_TILE2 = (1 << 6), ///< There is a second tile to scroll to; tile is in data_b
};
DECLARE_ENUM_AS_BIT_SET(NewsFlag);
/**
* News display options
*/
enum NewsDisplay {
ND_OFF, ///< Only show a reminder in the status bar
ND_SUMMARY, ///< Show ticker
ND_FULL, ///< Show newspaper
};
/**
* Per-NewsType data
*/
struct NewsTypeData {
const char *const name; ///< Name
const byte age; ///< Maximum age of news items (in days)
const SoundFx sound; ///< Sound
NewsDisplay display; ///< Display mode (off, summary, full)
};
struct NewsItem {
NewsItem *prev; ///< Previous news item
NewsItem *next; ///< Next news item
StringID string_id; ///< Message text
Date date; ///< Date of the news
NewsSubtype subtype; ///< News subtype @see NewsSubtype
NewsFlag flags; ///< NewsFlags bits @see NewsFlag
uint data_a; ///< Custom data 1 (usually tile or vehicle)
uint data_b; ///< Custom data 2
uint64 params[10];
};
#endif /* NEWS_TYPE_H */
|