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