21 #include "table/strings.h" 31 { 1,
"",
CF_NOEURO,
"\xC2\xA3",
"", 0, STR_GAME_OPTIONS_CURRENCY_GBP },
32 { 2,
"",
CF_NOEURO,
"$",
"", 0, STR_GAME_OPTIONS_CURRENCY_USD },
33 { 2,
"",
CF_ISEURO,
"\xE2\x82\xAC",
"", 0, STR_GAME_OPTIONS_CURRENCY_EUR },
34 { 220,
"",
CF_NOEURO,
"\xC2\xA5",
"", 0, STR_GAME_OPTIONS_CURRENCY_JPY },
35 { 27,
"", 2002,
"",
NBSP "S.", 1, STR_GAME_OPTIONS_CURRENCY_ATS },
36 { 81,
"", 2002,
"BEF" NBSP,
"", 0, STR_GAME_OPTIONS_CURRENCY_BEF },
37 { 2,
"",
CF_NOEURO,
"CHF" NBSP,
"", 0, STR_GAME_OPTIONS_CURRENCY_CHF },
38 { 41,
"",
CF_NOEURO,
"",
NBSP "K\xC4\x8D", 1, STR_GAME_OPTIONS_CURRENCY_CZK },
39 { 4,
"", 2002,
"DM" NBSP,
"", 0, STR_GAME_OPTIONS_CURRENCY_DEM },
40 { 11,
"",
CF_NOEURO,
"",
NBSP "kr", 1, STR_GAME_OPTIONS_CURRENCY_DKK },
41 { 333,
"", 2002,
"Pts" NBSP,
"", 0, STR_GAME_OPTIONS_CURRENCY_ESP },
42 { 12,
"", 2002,
"",
NBSP "mk", 1, STR_GAME_OPTIONS_CURRENCY_FIM },
43 { 13,
"", 2002,
"FF" NBSP,
"", 0, STR_GAME_OPTIONS_CURRENCY_FRF },
44 { 681,
"", 2002,
"",
"Dr.", 1, STR_GAME_OPTIONS_CURRENCY_GRD },
45 { 378,
"",
CF_NOEURO,
"",
NBSP "Ft", 1, STR_GAME_OPTIONS_CURRENCY_HUF },
46 { 130,
"",
CF_NOEURO,
"",
NBSP "Kr", 1, STR_GAME_OPTIONS_CURRENCY_ISK },
47 { 3873,
"", 2002,
"",
NBSP "L.", 1, STR_GAME_OPTIONS_CURRENCY_ITL },
48 { 4,
"", 2002,
"NLG" NBSP,
"", 0, STR_GAME_OPTIONS_CURRENCY_NLG },
49 { 12,
"",
CF_NOEURO,
"",
NBSP "Kr", 1, STR_GAME_OPTIONS_CURRENCY_NOK },
50 { 6,
"",
CF_NOEURO,
"",
NBSP "z\xC5\x82", 1, STR_GAME_OPTIONS_CURRENCY_PLN },
51 { 5,
"",
CF_NOEURO,
"",
NBSP "Lei", 1, STR_GAME_OPTIONS_CURRENCY_RON },
52 { 50,
"",
CF_NOEURO,
"",
NBSP "p", 1, STR_GAME_OPTIONS_CURRENCY_RUR },
53 { 479,
"", 2007,
"",
NBSP "SIT", 1, STR_GAME_OPTIONS_CURRENCY_SIT },
54 { 13,
"",
CF_NOEURO,
"",
NBSP "Kr", 1, STR_GAME_OPTIONS_CURRENCY_SEK },
55 { 3,
"",
CF_NOEURO,
"",
NBSP "TL", 1, STR_GAME_OPTIONS_CURRENCY_TRY },
56 { 60,
"", 2009,
"",
NBSP "Sk", 1, STR_GAME_OPTIONS_CURRENCY_SKK },
57 { 4,
"",
CF_NOEURO,
"R$" NBSP,
"", 0, STR_GAME_OPTIONS_CURRENCY_BRL },
58 { 31,
"", 2011,
"",
NBSP "EEK", 1, STR_GAME_OPTIONS_CURRENCY_EEK },
59 { 4,
"", 2015,
"",
NBSP "Lt", 1, STR_GAME_OPTIONS_CURRENCY_LTL },
60 { 1850,
"",
CF_NOEURO,
"\xE2\x82\xA9",
"", 0, STR_GAME_OPTIONS_CURRENCY_KRW },
61 { 13,
"",
CF_NOEURO,
"R" NBSP,
"", 0, STR_GAME_OPTIONS_CURRENCY_ZAR },
62 { 1,
"",
CF_NOEURO,
"",
"", 2, STR_GAME_OPTIONS_CURRENCY_CUSTOM },
63 { 3,
"",
CF_NOEURO,
"",
NBSP "GEL", 1, STR_GAME_OPTIONS_CURRENCY_GEL },
64 { 4901,
"",
CF_NOEURO,
"",
NBSP "Rls", 1, STR_GAME_OPTIONS_CURRENCY_IRR },
155 _currency_specs[i] = origin_currency_specs[i];
171 names[i] = _currency_specs[i].name;
GameSettings _settings_game
Game settings of a running game or the scenario editor.
void ResetCurrencies(bool preserve_custom)
Will fill _currency_specs array with default values from origin_currency_specs Called only from newgr...
Functions related to dates.
CurrencySpec _currency_specs[CURRENCY_END]
Array of currencies used by the system.
Functions to handle different currencies.
static T SetBit(T &x, const uint8 y)
Set a bit in a variable.
Functions related to bit mathematics.
int32 Year
Type for the year, note: 0 based, i.e. starts at the year 0.
Year _cur_year
Current year, starting at 0.
Types related to global configuration settings.
Definition of base types and functions in a cross-platform compatible way.
static const int CF_NOEURO
Currency never switches to the Euro (as far as known).
A number of safeguards to prevent using unsafe methods.
StringID * BuildCurrencyDropdown()
Build a list of currency names StringIDs to use in a dropdown list.
Normal news item. (Newspaper with text only)
static const CurrencySpec origin_currency_specs[CURRENCY_END]
The original currency specifications.
const byte TTDPatch_To_OTTDIndex[]
This array represent the position of OpenTTD's currencies, compared to TTDPatch's ones...
#define lengthof(x)
Return the length of an fixed size array.
byte GetNewgrfCurrencyIdConverted(byte grfcurr_id)
Will return the ottd's index correspondence to the ttdpatch's id.
uint32 StringID
Numeric value that represents a string, independent of the selected language.
Year to_euro
Year of switching to the Euro. May also be CF_NOEURO or CF_ISEURO.
void CheckSwitchToEuro()
Verify if the currency chosen by the user is about to be converted to Euro.
void AddNewsItem(StringID string, NewsType type, NewsFlag flags, NewsReferenceType reftype1=NR_NONE, uint32 ref1=UINT32_MAX, NewsReferenceType reftype2=NR_NONE, uint32 ref2=UINT32_MAX, void *free_data=NULL)
Add a new newsitem to be shown.
LocaleSettings locale
settings related to used currency/unit system in the current game
Specification of a currency.
static const StringID INVALID_STRING_ID
Constant representing an invalid string (16bit in case it is used in savegames)
uint64 GetMaskOfAllowedCurrencies()
get a mask of the allowed currencies depending on the year
static const int CF_ISEURO
Currency is the Euro.
Functions related to news.
#define NBSP
A non-breaking space.
Economic changes (recession, industry up/dowm)
byte currency
currency we currently use