Colobot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
resource.h
1 // * This file is part of the COLOBOT source code
2 // * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch
3 // *
4 // * This program is free software: you can redistribute it and/or modify
5 // * it under the terms of the GNU General Public License as published by
6 // * the Free Software Foundation, either version 3 of the License, or
7 // * (at your option) any later version.
8 // *
9 // * This program is distributed in the hope that it will be useful,
10 // * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // * GNU General Public License for more details.
13 // *
14 // * You should have received a copy of the GNU General Public License
15 // * along with this program. If not, see http://www.gnu.org/licenses/.
16 
17 #pragma once
18 
19 
20 enum EID
21 {
22  ID_IF = 2000,
23  ID_ELSE,
24  ID_WHILE,
25  ID_DO,
26  ID_FOR,
27  ID_BREAK,
28  ID_CONTINUE,
29  ID_SWITCH,
30  ID_CASE,
31  ID_DEFAULT,
32  ID_TRY,
33  ID_THROW,
34  ID_CATCH,
35  ID_FINALLY,
36  ID_TXT_AND,
37  ID_TXT_OR,
38  ID_TXT_NOT,
39  ID_RETURN,
40  ID_CLASS,
41  ID_EXTENDS,
42  ID_SYNCHO,
43  ID_NEW,
44  ID_PUBLIC,
45  ID_EXTERN,
46  ID_FINAL,
47  ID_STATIC,
48  ID_PROTECTED,
49  ID_PRIVATE,
50  ID_DEBUGDD,
51  ID_INT,
52  ID_FLOAT,
53  ID_BOOLEAN,
54  ID_STRING,
55  ID_VOID,
56  ID_BOOL,
57 
58  ID_TRUE = 2200,
59  ID_FALSE,
60  ID_NULL,
61  ID_NAN,
62 
63  ID_OPENPAR = 2300,
64  ID_CLOSEPAR,
65  ID_OPBLK,
66  ID_CLBLK,
67  ID_SEP,
68  ID_COMMA,
69  ID_DOTS,
70  ID_DOT,
71  ID_OPBRK,
72  ID_CLBRK,
73  ID_DBLDOTS,
74  ID_LOGIC,
75  ID_ADD,
76  ID_SUB,
77  ID_MUL,
78  ID_DIV,
79  ID_ASS,
80  ID_ASSADD,
81  ID_ASSSUB,
82  ID_ASSMUL,
83  ID_ASSDIV,
84  ID_ASSOR,
85  ID_ASSAND,
86  ID_ASSXOR,
87  ID_ASSSL,
88  ID_ASSSR,
89  ID_ASSASR,
90  ID_SL,
91  ID_SR,
92  ID_ASR,
93  ID_INC,
94  ID_DEC,
95  ID_LO,
96  ID_HI,
97  ID_LS,
98  ID_HS,
99  ID_EQ,
100  ID_NE,
101  ID_AND,
102  ID_XOR,
103  ID_OR,
104  ID_LOG_AND,
105  ID_LOG_OR,
106  ID_LOG_NOT,
107  ID_NOT,
108  ID_MODULO,
109  ID_POWER,
110  ID_ASSMODULO,
111  TX_UNDEF = 4000,
112  TX_NAN,
113  ID_SUPER = 6000
114 };
115 
116 // TODO: refactor & change to enum!
117 
118 #define TX_OPENPAR 5000
119 #define TX_CLOSEPAR 5001
120 #define TX_NOTBOOL 5002
121 #define TX_UNDEFVAR 5003
122 #define TX_BADLEFT 5004
123 #define TX_ENDOF 5005
124 #define TX_OUTCASE 5006
125 #define TX_NOTERM 5007
126 #define TX_CLOSEBLK 5008
127 #define TX_ELSEWITHOUTIF 5009
128 #define TX_OPENBLK 5010
129 #define TX_BADTYPE 5011
130 #define TX_REDEFVAR 5012
131 #define TX_BAD2TYPE 5013
132 #define TX_UNDEFCALL 5014
133 #define TX_MISDOTS 5015
134 #define TX_WHILE 5016
135 #define TX_BREAK 5017
136 #define TX_LABEL 5018
137 #define TX_NOLABEL 5019
138 #define TX_NOCASE 5020
139 #define TX_BADNUM 5021
140 #define TX_VOID 5022
141 #define TX_NOTYP 5023
142 #define TX_NOVAR 5024
143 #define TX_NOFONC 5025
144 #define TX_OVERPARAM 5026
145 #define TX_REDEF 5027
146 #define TX_LOWPARAM 5028
147 #define TX_BADPARAM 5029
148 #define TX_NUMPARAM 5030
149 #define TX_NOITEM 5031
150 #define TX_DOT 5032
151 #define TX_NOCONST 5033
152 #define TX_REDEFCLASS 5034
153 #define TX_CLBRK 5035
154 #define TX_RESERVED 5036
155 #define TX_BADNEW 5037
156 #define TX_OPBRK 5038
157 #define TX_BADSTRING 5039
158 #define TX_BADINDEX 5040
159 #define TX_PRIVATE 5041
160 #define TX_NOPUBLIC 5042
161 #define TX_DIVZERO 6000
162 #define TX_NOTINIT 6001
163 #define TX_BADTHROW 6002
164 #define TX_NORETVAL 6003
165 #define TX_NORUN 6004
166 #define TX_NOCALL 6005
167 #define TX_NOCLASS 6006
168 #define TX_NULLPT 6007
169 #define TX_OPNAN 6008
170 #define TX_OUTARRAY 6009
171 #define TX_STACKOVER 6010
172 #define TX_DELETEDPT 6011
173 #define TX_FILEOPEN 6012
174 #define TX_NOTOPEN 6013
175 #define TX_ERRREAD 6014
176 #define TX_ERRWRITE 6015
177 
178 #define TX_MAX 6016
179