tron@2292: /* $Id$ */ tron@2292: tron@2291: #ifndef CURRENCY_H tron@2291: #define CURRENCY_H tron@2291: tron@2291: enum { tron@2291: CF_NOEURO = 0, tron@2291: CF_ISEURO = 1, tron@2291: }; tron@2291: tron@2291: typedef struct { tron@2291: uint16 rate; tron@2291: char separator; tron@2291: uint16 to_euro; tron@2291: char prefix[16]; tron@2291: char suffix[16]; tron@2291: } CurrencySpec; tron@2291: tron@2291: extern CurrencySpec _currency_specs[]; tron@2291: extern const StringID _currency_string_list[]; tron@2291: tron@2306: // XXX small hack, but makes the rest of the code a bit nicer to read tron@2306: #define _custom_currency (_currency_specs[23]) tron@2468: #define _currency ((const CurrencySpec*)&_currency_specs[_opt_ptr->currency]) tron@2306: tron@2291: uint GetMaskOfAllowedCurrencies(void); tron@2306: void CheckSwitchToEuro(void); tron@2291: Darkvater@2436: #endif /* CURRENCY_H */