~ubuntu-branches/debian/squeeze/openttd/squeeze

« back to all changes in this revision

Viewing changes to src/table/control_codes.h

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach, Matthijs Kooijman, Jordi Mallach
  • Date: 2009-04-15 18:22:10 UTC
  • mfrom: (1.1.6 upstream) (2.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090415182210-22ktb8kdbp2tf3bm
[ Matthijs Kooijman ]
* New upstream release.
* Remove Debian specific desktop file, upstream provides one now. 
* Add debian/watch file.

[ Jordi Mallach ]
* Bump Standards-Version to 3.8.1, with no changes required.
* Move to debhelper compat 7. Bump Build-Depends accordingly.
* Use dh_prep.
* Add "set -e" to config script.
* Remove a few extra doc files that get installed by upstream Makefile.
* Add more complete copyright information.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: control_codes.h 11981 2008-01-25 13:48:39Z peter1138 $ */
 
1
/* $Id: control_codes.h 15104 2009-01-16 12:59:47Z rubidium $ */
 
2
 
 
3
/** @file control_codes.h Control codes that are embedded in the translation strings. */
2
4
 
3
5
#ifndef CONTROL_CODES_H
4
6
#define CONTROL_CODES_H
5
7
 
6
 
/* List of string control codes used for string formatting, displaying, and
7
 
 * by strgen to generate the language files. */
8
 
 
 
8
/**
 
9
 * List of string control codes used for string formatting, displaying, and
 
10
 * by strgen to generate the language files.
 
11
 */
9
12
enum StringControlCode {
10
13
        SCC_CONTROL_START = 0xE000,
11
14
        SCC_CONTROL_END   = 0xE1FF,
16
19
        /* Display control codes */
17
20
        SCC_SETX = SCC_CONTROL_START,
18
21
        SCC_SETXY,
19
 
        SCC_TINYFONT,
20
 
        SCC_BIGFONT,
 
22
        SCC_TINYFONT,  ///< Switch to small font
 
23
        SCC_BIGFONT,   ///< Switch to large font
21
24
 
22
25
        /* Formatting control codes */
23
26
        SCC_REVISION,
31
34
        SCC_SIGN_NAME,
32
35
        SCC_COMPANY_NAME,
33
36
        SCC_COMPANY_NUM,
34
 
        SCC_PLAYER_NAME,
 
37
        SCC_PRESIDENT_NAME,
35
38
        SCC_ENGINE_NAME,
36
39
 
37
40
        SCC_CURRENCY_COMPACT,
50
53
        SCC_DATE_TINY,
51
54
        SCC_DATE_SHORT,
52
55
        SCC_DATE_LONG,
 
56
        SCC_DATE_ISO,
53
57
 
54
58
        SCC_STRING1,
55
59
        SCC_STRING2,
61
65
        SCC_STRING,
62
66
        SCC_COMMA,
63
67
        SCC_NUM,
 
68
        SCC_HEX,
 
69
        SCC_BYTES,
64
70
 
65
71
        SCC_STRING_ID,
 
72
        SCC_RAW_STRING_POINTER,
66
73
        SCC_PLURAL_LIST,
67
74
        SCC_GENDER_LIST,
68
75
        SCC_GENDER_INDEX,
97
104
        SCC_NEWGRF_FIRST,
98
105
        SCC_NEWGRF_PRINT_DWORD = SCC_NEWGRF_FIRST, ///< Read 4 bytes from the stack
99
106
        SCC_NEWGRF_PRINT_SIGNED_WORD,              ///< Read 2 bytes from the stack as signed value
100
 
        SCC_NEWGRF_PRINT_SIGNED_BYTE,              ///< Read 1 bytes from the stack as signed value
 
107
        SCC_NEWGRF_PRINT_SIGNED_BYTE,              ///< Read 1 byte from the stack as signed value
101
108
        SCC_NEWGRF_PRINT_UNSIGNED_WORD,            ///< Read 2 bytes from the stack as unsigned value
102
109
        SCC_NEWGRF_PRINT_DWORD_CURRENCY,           ///< Read 4 bytes from the stack as currency
103
110
        SCC_NEWGRF_PRINT_STRING_ID,                ///< Read 2 bytes from the stack as String ID
106
113
        SCC_NEWGRF_PRINT_WORD_SPEED,               ///< Read 2 bytes from the stack as signed speed
107
114
        SCC_NEWGRF_PRINT_WORD_LITRES,              ///< Read 2 bytes from the stack as signed litres
108
115
        SCC_NEWGRF_PRINT_QWORD_CURRENCY,           ///< Read 8 bytes from the stack as currency
 
116
        SCC_NEWGRF_PRINT_HEX_BYTE,                 ///< Read 1 byte from the stack and print it as hex
 
117
        SCC_NEWGRF_PRINT_HEX_WORD,                 ///< Read 2 bytes from the stack and print it as hex
 
118
        SCC_NEWGRF_PRINT_HEX_DWORD,                ///< Read 4 bytes from the stack and print it as hex
109
119
        SCC_NEWGRF_PUSH_WORD,                      ///< Pushes 2 bytes onto the stack
110
120
        SCC_NEWGRF_UNPRINT,                        ///< "Unprints" the given number of bytes from the string
111
121
        SCC_NEWGRF_DISCARD_WORD,                   ///< Discard the next two bytes