author | tron |
Sat, 06 Aug 2005 15:18:26 +0000 | |
changeset 2292 | c5a944e9bcae |
parent 2291 | 2b064aa97f91 |
child 2306 | 3d4efe849dd9 |
permissions | -rw-r--r-- |
2292 | 1 |
/* $Id$ */ |
2 |
||
2291
2b064aa97f91
(svn r2815) Store the currency information in one central place instead of scattering it in several unrelated files
tron
parents:
diff
changeset
|
3 |
#ifndef CURRENCY_H |
2b064aa97f91
(svn r2815) Store the currency information in one central place instead of scattering it in several unrelated files
tron
parents:
diff
changeset
|
4 |
#define CURRENCY_H |
2b064aa97f91
(svn r2815) Store the currency information in one central place instead of scattering it in several unrelated files
tron
parents:
diff
changeset
|
5 |
|
2b064aa97f91
(svn r2815) Store the currency information in one central place instead of scattering it in several unrelated files
tron
parents:
diff
changeset
|
6 |
enum { |
2b064aa97f91
(svn r2815) Store the currency information in one central place instead of scattering it in several unrelated files
tron
parents:
diff
changeset
|
7 |
CF_NOEURO = 0, |
2b064aa97f91
(svn r2815) Store the currency information in one central place instead of scattering it in several unrelated files
tron
parents:
diff
changeset
|
8 |
CF_ISEURO = 1, |
2b064aa97f91
(svn r2815) Store the currency information in one central place instead of scattering it in several unrelated files
tron
parents:
diff
changeset
|
9 |
}; |
2b064aa97f91
(svn r2815) Store the currency information in one central place instead of scattering it in several unrelated files
tron
parents:
diff
changeset
|
10 |
|
2b064aa97f91
(svn r2815) Store the currency information in one central place instead of scattering it in several unrelated files
tron
parents:
diff
changeset
|
11 |
typedef struct { |
2b064aa97f91
(svn r2815) Store the currency information in one central place instead of scattering it in several unrelated files
tron
parents:
diff
changeset
|
12 |
uint16 rate; |
2b064aa97f91
(svn r2815) Store the currency information in one central place instead of scattering it in several unrelated files
tron
parents:
diff
changeset
|
13 |
char separator; |
2b064aa97f91
(svn r2815) Store the currency information in one central place instead of scattering it in several unrelated files
tron
parents:
diff
changeset
|
14 |
uint16 to_euro; |
2b064aa97f91
(svn r2815) Store the currency information in one central place instead of scattering it in several unrelated files
tron
parents:
diff
changeset
|
15 |
char prefix[16]; |
2b064aa97f91
(svn r2815) Store the currency information in one central place instead of scattering it in several unrelated files
tron
parents:
diff
changeset
|
16 |
char suffix[16]; |
2b064aa97f91
(svn r2815) Store the currency information in one central place instead of scattering it in several unrelated files
tron
parents:
diff
changeset
|
17 |
} CurrencySpec; |
2b064aa97f91
(svn r2815) Store the currency information in one central place instead of scattering it in several unrelated files
tron
parents:
diff
changeset
|
18 |
|
2b064aa97f91
(svn r2815) Store the currency information in one central place instead of scattering it in several unrelated files
tron
parents:
diff
changeset
|
19 |
extern CurrencySpec _currency_specs[]; |
2b064aa97f91
(svn r2815) Store the currency information in one central place instead of scattering it in several unrelated files
tron
parents:
diff
changeset
|
20 |
extern const StringID _currency_string_list[]; |
2b064aa97f91
(svn r2815) Store the currency information in one central place instead of scattering it in several unrelated files
tron
parents:
diff
changeset
|
21 |
|
2b064aa97f91
(svn r2815) Store the currency information in one central place instead of scattering it in several unrelated files
tron
parents:
diff
changeset
|
22 |
uint GetMaskOfAllowedCurrencies(void); |
2b064aa97f91
(svn r2815) Store the currency information in one central place instead of scattering it in several unrelated files
tron
parents:
diff
changeset
|
23 |
uint GetCurrentCurrencyRate(void); |
2b064aa97f91
(svn r2815) Store the currency information in one central place instead of scattering it in several unrelated files
tron
parents:
diff
changeset
|
24 |
|
2b064aa97f91
(svn r2815) Store the currency information in one central place instead of scattering it in several unrelated files
tron
parents:
diff
changeset
|
25 |
#endif |