table/currency.h
author matthijs
Thu, 16 Jun 2005 18:04:02 +0000
changeset 1942 c5d5cf5b0263
parent 768 c833f6f2742d
child 2186 db48cf29b983
permissions -rw-r--r--
(svn r2448) General cleanup of rail related code, more to follow.
* Add: rail.[ch] for rail-related enums and wrapper functions.
* Codechange: Removed dozens of magic numbers with below enums.
* Codechange: Rewrote CheckTrackCombination().
* Add: TILE_SIZE, TILE_PIXELS and TILE_HEIGHT constants.
* Add: enums RailTileType, RailTileSubtype, SignalType to mask against the map arrays.
* Add: enums Track, TrackBits, Trackdir, TrackdirBits for railway track data. (Note that the old RAIL_BIT constants are replaced by TRACK_BIT ones).
* Add: enums Direction and DiagDirection
* Codechange: Moved a bunch of track(dir) related lookup arrays from npf.[ch] to rail.[ch].
* Codechange: move RailType enum from tile.h to rail.h.
* Add: Wrapper functions for masking signal status in the map arrays: SignalAlongTrackdir, SignalAgainstTrackdir and SignalOnTrack.
* Add: Wrapper functions to access rail tiles, using above enums
* Add: Wrapper functions to modify tracks, trackdirs, directions, etc.
* Add: Wrapper functions for all lookup arrays in rail.[ch] (Arrays are still used in parts of the code)
* Codechange: Renamed some variables and arguments to better represent what they contain (railbit -> track, bits -> trackdirbits, etc.).
* Codechange: Don't use FindLandscapeHeight() in CmdRemoveSingleRail(), since it returns way too much info. Use GetTileSlope() instead.
* Codechange: [NPF] Removed some unused globals and code from npf.c.
// exchange rate    prefix
// |  separator        |     postfix
// |   |    Euro year  |       |
// |   |    |          |       |
CurrencySpec _currency_specs[] = {
{ 1,   ',', CF_NOEURO, "\xA3",   "" }, // british pounds
{ 2,   ',', CF_NOEURO, "$",      "" }, // us dollars
{ 2,   ',', CF_ISEURO, "¤",      "" }, // Euro
{ 200, ',', CF_NOEURO, "\xA5",   "" }, // yen

{ 19,  ',', 2002,         "", " S." }, // austrian schilling
{ 57,  ',', 2002,     "BEF ",    "" }, // belgian franc
{ 2,   ',', CF_NOEURO,"CHF ",    "" }, // swiss franc
{ 50,  ',', CF_NOEURO,    "", " Kc" }, // czech koruna // TODO: Should use the "c" with an upside down "^"
{ 4,   '.', 2002,      "DM ",    "" }, // deutsche mark
{ 10,  '.', CF_NOEURO,    "", " kr" }, // danish krone
{ 200, '.', 2002,     "Pts ",    "" }, // spanish pesetas
{ 8,   ',', 2002,         "", " MK" }, // finnish markka
{ 10,  '.', 2002,      "FF ",    "" }, // french francs
{ 480, ',', 2002,         "", "Dr." }, // greek drachma
{ 376, ',', 2002,         "", " Ft" }, // forint
{ 130, '.', CF_NOEURO,    "", " Kr" }, // icelandic krona
{ 2730,',', 2002,         "", " L." }, // italian lira
{ 3,   ',', 2002,     "NLG ",    "" }, // dutch gulden
{ 11,  '.', CF_NOEURO,    "", " Kr" }, // norwegian krone
{ 6,   ' ', CF_NOEURO,    "", " zl" }, // polish zloty
{ 6,   '.', CF_NOEURO,    ""," Lei" }, // romanian Lei
{ 5,   ' ', CF_NOEURO,    "",  " p" }, // russian rouble
{ 13,  '.', CF_NOEURO,    "", " Kr" }, // swedish krona
{ 1,   ' ', CF_NOEURO,    "",    "" }, // custom currency
};