strings_type.h

Go to the documentation of this file.
00001 /* $Id: strings_type.h 11886 2008-01-17 00:21:43Z glx $ */
00002 
00005 #ifndef STRINGS_TYPE_H
00006 #define STRINGS_TYPE_H
00007 
00008 typedef uint16 StringID;
00009 static const StringID INVALID_STRING_ID = 0xFFFF;
00010 
00011 enum {
00012   MAX_LANG = 64,
00013 };
00014 
00016 struct Language {
00017   char *name; 
00018   char *file; 
00019 };
00020 
00022 struct DynamicLanguages {
00023   int num;                  
00024   int curr;                 
00025   char curr_file[MAX_PATH]; 
00026   Language ent[MAX_LANG];   
00027 };
00028 
00029 // special string constants
00030 enum SpecialStrings {
00031 
00032   // special strings for town names. the town name is generated dynamically on request.
00033   SPECSTR_TOWNNAME_START     = 0x20C0,
00034   SPECSTR_TOWNNAME_ENGLISH   = SPECSTR_TOWNNAME_START,
00035   SPECSTR_TOWNNAME_FRENCH,
00036   SPECSTR_TOWNNAME_GERMAN,
00037   SPECSTR_TOWNNAME_AMERICAN,
00038   SPECSTR_TOWNNAME_LATIN,
00039   SPECSTR_TOWNNAME_SILLY,
00040   SPECSTR_TOWNNAME_SWEDISH,
00041   SPECSTR_TOWNNAME_DUTCH,
00042   SPECSTR_TOWNNAME_FINNISH,
00043   SPECSTR_TOWNNAME_POLISH,
00044   SPECSTR_TOWNNAME_SLOVAKISH,
00045   SPECSTR_TOWNNAME_NORWEGIAN,
00046   SPECSTR_TOWNNAME_HUNGARIAN,
00047   SPECSTR_TOWNNAME_AUSTRIAN,
00048   SPECSTR_TOWNNAME_ROMANIAN,
00049   SPECSTR_TOWNNAME_CZECH,
00050   SPECSTR_TOWNNAME_SWISS,
00051   SPECSTR_TOWNNAME_DANISH,
00052   SPECSTR_TOWNNAME_TURKISH,
00053   SPECSTR_TOWNNAME_ITALIAN,
00054   SPECSTR_TOWNNAME_CATALAN,
00055   SPECSTR_TOWNNAME_LAST      = SPECSTR_TOWNNAME_CATALAN,
00056 
00057   // special strings for player names on the form "TownName transport".
00058   SPECSTR_PLAYERNAME_START   = 0x70EA,
00059   SPECSTR_PLAYERNAME_ENGLISH = SPECSTR_PLAYERNAME_START,
00060   SPECSTR_PLAYERNAME_FRENCH,
00061   SPECSTR_PLAYERNAME_GERMAN,
00062   SPECSTR_PLAYERNAME_AMERICAN,
00063   SPECSTR_PLAYERNAME_LATIN,
00064   SPECSTR_PLAYERNAME_SILLY,
00065   SPECSTR_PLAYERNAME_LAST    = SPECSTR_PLAYERNAME_SILLY,
00066 
00067   SPECSTR_ANDCO_NAME         = 0x70E6,
00068   SPECSTR_PRESIDENT_NAME     = 0x70E7,
00069   SPECSTR_SONGNAME           = 0x70E8,
00070 
00071   // reserve MAX_LANG strings for the *.lng files
00072   SPECSTR_LANGUAGE_START     = 0x7100,
00073   SPECSTR_LANGUAGE_END       = SPECSTR_LANGUAGE_START + MAX_LANG - 1,
00074 
00075   // reserve 32 strings for various screen resolutions
00076   SPECSTR_RESOLUTION_START   = SPECSTR_LANGUAGE_END + 1,
00077   SPECSTR_RESOLUTION_END     = SPECSTR_RESOLUTION_START + 0x1F,
00078 
00079   // reserve 32 strings for screenshot formats
00080   SPECSTR_SCREENSHOT_START   = SPECSTR_RESOLUTION_END + 1,
00081   SPECSTR_SCREENSHOT_END     = SPECSTR_SCREENSHOT_START + 0x1F,
00082 
00083   // Used to implement SetDParamStr
00084   STR_SPEC_DYNSTRING         = 0xF800,
00085   STR_SPEC_USERSTRING        = 0xF808,
00086 };
00087 
00088 #endif /* STRINGS_TYPE_H */

Generated on Wed Oct 1 17:03:24 2008 for openttd by  doxygen 1.5.6