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