static constexpr TimerGameCalendar::Year MIN_EURO_YEAR
The earliest year custom currencies may switch to the Euro.
uint64_t GetMaskOfAllowedCurrencies()
get a mask of the allowed currencies depending on the year
const CurrencySpec & GetCurrency()
Get the currently selected currency.
static constexpr TimerGameCalendar::Year CF_ISEURO
Currency is the Euro.
CurrencySpec & GetCustomCurrency()
Get the custom currency.
uint8_t GetNewgrfCurrencyIdConverted(uint8_t grfcurr_id)
Will return the ottd's index correspondence to the ttdpatch's id.
std::array< CurrencySpec, CURRENCY_END > _currency_specs
Array of currencies used by the system.
static constexpr TimerGameCalendar::Year CF_NOEURO
Currency never switches to the Euro (as far as known).
Currencies
This enum gives the currencies a unique id which must be maintained for savegame compatibility and in...
@ CURRENCY_IDR
Indonesian Rupiah.
@ CURRENCY_GBP
British Pound.
@ CURRENCY_BRL
Brazilian Real.
@ CURRENCY_CNY
Chinese Renminbi.
@ CURRENCY_LVL
Latvian Lats.
@ CURRENCY_ESP
Spanish Peseta.
@ CURRENCY_FRF
French Franc.
@ CURRENCY_SEK
Swedish Krona.
@ CURRENCY_GRD
Greek Drachma.
@ CURRENCY_RUB
New Russian Ruble.
@ CURRENCY_NOK
Norwegian Krone.
@ CURRENCY_INR
Indian Rupee.
@ CURRENCY_JPY
Japanese Yen.
@ CURRENCY_DKK
Danish Krona.
@ CURRENCY_GEL
Georgian Lari.
@ CURRENCY_ATS
Austrian Schilling.
@ CURRENCY_SIT
Slovenian Tolar.
@ CURRENCY_END
always the last item
@ CURRENCY_NTD
New Taiwan Dollar.
@ CURRENCY_EEK
Estonian Krooni.
@ CURRENCY_YTL
Turkish Lira.
@ CURRENCY_MXN
Mexican Peso.
@ CURRENCY_ISK
Icelandic Krona.
@ CURRENCY_FIM
Finish Markka.
@ CURRENCY_DEM
Deutsche Mark.
@ CURRENCY_ZAR
South African Rand.
@ CURRENCY_RON
Romenian Leu.
@ CURRENCY_BEF
Belgian Franc.
@ CURRENCY_ITL
Italian Lira.
@ CURRENCY_CZK
Czech Koruna.
@ CURRENCY_PLN
Polish Zloty.
@ CURRENCY_RUR
Russian Rouble.
@ CURRENCY_CHF
Swiss Franc.
@ CURRENCY_SKK
Slovak Kornuna.
@ CURRENCY_LTL
Lithuanian Litas.
@ CURRENCY_CUSTOM
Custom currency.
@ CURRENCY_MYR
Malaysian Ringgit.
@ CURRENCY_NLG
Dutch Gulden.
@ CURRENCY_HKD
Hong Kong Dollar.
@ CURRENCY_KRW
South Korean Won.
@ CURRENCY_HUF
Hungarian Forint.
@ CURRENCY_PTE
Portuguese Escudo.
@ CURRENCY_IRR
Iranian Rial.
void ResetCurrencies(bool preserve_custom=true)
Will fill _currency_specs array with default values from origin_currency_specs Called only from newgr...
Types related to global configuration settings.
GameSettings & GetGameSettings()
Get the settings-object applicable for the current situation: the newgame settings when we're in the ...
Types related to strings.
uint32_t StringID
Numeric value that represents a string, independent of the selected language.
Specification of a currency.
std::string separator
The thousands separator for this currency.
std::string prefix
Prefix to apply when formatting money in this currency.
TimerGameCalendar::Year to_euro
Year of switching to the Euro. May also be CF_NOEURO or CF_ISEURO.
std::string suffix
Suffix to apply when formatting money in this currency.
std::string code
3 letter untranslated code to identify the currency.
uint16_t rate
The conversion rate compared to the base currency.
uint8_t symbol_pos
The currency symbol is represented by two possible values, prefix and suffix Usage of one or the othe...
LocaleSettings locale
settings related to used currency/unit system in the current game
uint8_t currency
currency we currently use
Templated helper to make a type-safe 'typedef' representing a single POD value.
Definition of the game-calendar-timer.