Colobot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
global.h
Go to the documentation of this file.
1 /*
2  * This file is part of the Colobot: Gold Edition source code
3  * Copyright (C) 2001-2014, Daniel Roux, EPSITEC SA & TerranovaTeam
4  * http://epsiteс.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 
25 #pragma once
26 
27 
32 enum Error
33 {
34  ERR_OK = 0,
37  ERR_STOP = 3,
38  ERR_CMD = 4,
39  ERR_MANIP_VEH = 100,
40  ERR_MANIP_FLY = 101,
42  ERR_MANIP_NIL = 103,
44  ERR_MANIP_OCC = 106,
49  ERR_BUILD_FLY = 120,
66  ERR_TERRA_VEH = 150,
71  ERR_FIRE_VEH = 160,
73  ERR_FIRE_FLY = 162,
83  ERR_GOTO_ITER = 211,
84  ERR_GOTO_BUSY = 212,
99  ERR_LABO_NULL = 350,
100  ERR_LABO_BAD = 351,
116  ERR_FLAG_FLY = 510,
126  ERR_TOOMANY = 702,
130 
131  INFO_FIRST = 10000,
132  INFO_BUILD = 10001,
133  INFO_CONVERT = 10002,
134  INFO_RESEARCH = 10003,
135  INFO_FACTORY = 10004,
136  INFO_LABO = 10005,
137  INFO_ENERGY = 10006,
138  INFO_NUCLEAR = 10007,
139  INFO_FINDING = 10008,
140  INFO_MARKPOWER = 10020,
142  INFO_MARKSTONE = 10022,
143  INFO_MARKKEYa = 10023,
144  INFO_MARKKEYb = 10024,
145  INFO_MARKKEYc = 10025,
146  INFO_MARKKEYd = 10026,
155  INFO_WIN = 10040,
156  INFO_LOST = 10041,
157  INFO_LOSTq = 10042,
158  INFO_WRITEOK = 10043,
159  INFO_DELETEPATH = 10050,
161  INFO_DELETEANT = 10101,
162  INFO_DELETEBEE = 10102,
163  INFO_DELETEWORM = 10103,
166 
168 };
169 
175 {
176  LANGUAGE_ENV = -1,
177  LANGUAGE_ENGLISH = 0,
178  LANGUAGE_FRENCH = 1,
179  LANGUAGE_GERMAN = 2,
180  LANGUAGE_POLISH = 3,
181  LANGUAGE_RUSSIAN = 4
182 };
183 
184 
192 {
193  BUILD_FACTORY = (1<<0),
194  BUILD_DERRICK = (1<<1),
195  BUILD_CONVERT = (1<<2),
196  BUILD_RADAR = (1<<3),
197  BUILD_ENERGY = (1<<4),
198  BUILD_NUCLEAR = (1<<5),
199  BUILD_STATION = (1<<6),
200  BUILD_REPAIR = (1<<7),
201  BUILD_TOWER = (1<<8),
202  BUILD_RESEARCH = (1<<9),
203  BUILD_LABO = (1<<10),
204  BUILD_PARA = (1<<11),
205  BUILD_INFO = (1<<12),
206  BUILD_DESTROYER = (1<<13),
207  BUILD_GFLAT = (1<<16),
208  BUILD_FLAG = (1<<17)
209 };
210 
216 {
217  RESEARCH_TANK = (1<<0),
218  RESEARCH_FLY = (1<<1),
219  RESEARCH_CANON = (1<<2),
220  RESEARCH_TOWER = (1<<3),
221  RESEARCH_ATOMIC = (1<<4),
222  RESEARCH_THUMP = (1<<5),
223  RESEARCH_SHIELD = (1<<6),
224  RESEARCH_PHAZER = (1<<7),
225  RESEARCH_iPAW = (1<<8),
226  RESEARCH_iGUN = (1<<9),
227  RESEARCH_RECYCLER = (1<<10),
228  RESEARCH_SUBM = (1<<11),
229  RESEARCH_SNIFFER = (1<<12)
230 };
231 
232 
233 // TODO: move to CRobotMain
234 extern long g_id; // unique identifier
235 extern int g_build; // constructible buildings
236 extern int g_researchDone; // research done
237 extern long g_researchEnable; // research available
238 extern float g_unit; // conversion factor
239 
< built: can not produce this object in this mission
Definition: global.h:62
< too close to the rocket
Definition: global.h:59
< nuclear
Definition: global.h:222
< goto destination occupied
Definition: global.h:85
< research ended
Definition: global.h:151
< factory
Definition: global.h:194
< not enough flat ground
Definition: global.h:56
< no battery
Definition: global.h:90
< no energy underground
Definition: global.h:87
< search ended
Definition: global.h:135
< the wrong type of battery
Definition: global.h:92
< lost immediately
Definition: global.h:158
< built: not possible in movement
Definition: global.h:61
< built: can not produce not researched object
Definition: global.h:63
< insect killed
Definition: global.h:164
< nothing to analyze
Definition: global.h:100
< analyzes only organic ball
Definition: global.h:101
< vehicle too close
Definition: global.h:109
< insect killed
Definition: global.h:162
< location for derrick found
Definition: global.h:144
< vehicle too close
Definition: global.h:108
< too many flags
Definition: global.h:121
< location for derrick found
Definition: global.h:143
< caterpillars
Definition: global.h:218
< not enough energy
Definition: global.h:95
< stops
Definition: global.h:38
< not enough energy
Definition: global.h:68
< factory of cells
Definition: global.h:198
< derrick
Definition: global.h:195
< nuclear power plant
Definition: global.h:199
< busy: location already occupied
Definition: global.h:45
< no battery
Definition: global.h:88
< not enough flat ground space
Definition: global.h:57
< research ended
Definition: global.h:153
< any error
Definition: global.h:36
< record done
Definition: global.h:159
< location for derrick found
Definition: global.h:142
< metal available
Definition: global.h:134
< cannon
Definition: global.h:220
< building destroyed
Definition: global.h:126
< no metal
Definition: global.h:107
< not possible under water
Definition: global.h:51
< transforms only the metal
Definition: global.h:97
< insect killed
Definition: global.h:165
< vehicle infected by a virus
Definition: global.h:111
< nuclear battery available
Definition: global.h:140
< insect killed
Definition: global.h:163
< no information terminal
Definition: global.h:110
< location occupied
Definition: global.h:58
< you must be on spaceship
Definition: global.h:99
< lightning protection
Definition: global.h:205
< inappropriate vehicle
Definition: global.h:40
< research ended
Definition: global.h:149
< research ended
Definition: global.h:155
< way mark deleted
Definition: global.h:160
< lack of metal
Definition: global.h:96
< not enough energy
Definition: global.h:76
< location for derrick found
Definition: global.h:145
< more energy
Definition: global.h:116
< impossible in flight
Definition: global.h:41
< location for station found
Definition: global.h:141
< no battery
Definition: global.h:115
< doors locked
Definition: global.h:98
< find impossible
Definition: global.h:82
< analysis ended
Definition: global.h:137
< inappropriate ground
Definition: global.h:69
< not possible in flight
Definition: global.h:64
< lost
Definition: global.h:157
< nothing to deposit
Definition: global.h:49
BuildType
Construction actions (buildings, etc.) available to user.
Definition: global.h:191
< inappropriate vehicle
Definition: global.h:75
< radar
Definition: global.h:197
< taking: already creating flag
Definition: global.h:120
< not enough energy
Definition: global.h:73
< analysis already made
Definition: global.h:102
ResearchType
Research actions available to user.
Definition: global.h:215
< defense tower
Definition: global.h:221
< inappropriate vehicle
Definition: global.h:114
< wings
Definition: global.h:219
< legs of insects
Definition: global.h:226
< taking: nothing has to take
Definition: global.h:43
< base station
Definition: global.h:200
< no energy underground
Definition: global.h:94
< building infected by a virus
Definition: global.h:112
< lack of metal
Definition: global.h:55
< defense tower
Definition: global.h:202
< research center
Definition: global.h:203
< compulsory instruction missing
Definition: global.h:128
< lack of ruin
Definition: global.h:77
< win
Definition: global.h:156
< insect killed
Definition: global.h:161
< inappropriate vehicle
Definition: global.h:65
< impossible in movement
Definition: global.h:119
< thumper
Definition: global.h:223
< instruction prohibited
Definition: global.h:129
< busy: impossible to move
Definition: global.h:44
< impossible during swimming
Definition: global.h:118
< nothing to remove
Definition: global.h:123
< buildings too close
Definition: global.h:60
< not enough energy
Definition: global.h:104
< research ended
Definition: global.h:148
< recycler
Definition: global.h:228
< no ore underground
Definition: global.h:86
< not possible in flight
Definition: global.h:50
< research ended
Definition: global.h:152
< goto too complicated
Definition: global.h:84
< use your SatCom
Definition: global.h:167
< more energy
Definition: global.h:91
< flat floor
Definition: global.h:208
< not found anything to destroy
Definition: global.h:113
< research already done
Definition: global.h:93
< repair center
Definition: global.h:201
< no energy underground
Definition: global.h:103
< transforms only uranium
Definition: global.h:106
< not enough energy
Definition: global.h:52
< move impossible
Definition: global.h:81
< inappropriate vehicle
Definition: global.h:79
< inappropriate vehicle
Definition: global.h:72
< lack of metal (too far)
Definition: global.h:53
< unknown command
Definition: global.h:39
< taking: hands already occupied
Definition: global.h:42
< cannot aim at specified angle(s)
Definition: global.h:131
Error
Type of error or info message.
Definition: global.h:32
< not possible under water
Definition: global.h:48
< ok
Definition: global.h:35
< goto impossible
Definition: global.h:83
< vehicle manufactured
Definition: global.h:136
< information terminal
Definition: global.h:206
< location for derrick found
Definition: global.h:146
< impossible in movement
Definition: global.h:66
< not possible in flight
Definition: global.h:74
< too many objects
Definition: global.h:127
< construction builded
Definition: global.h:133
< submarine
Definition: global.h:229
< laboratory
Definition: global.h:204
< object too close
Definition: global.h:71
< inappropriate vehicle
Definition: global.h:67
< Destroyer
Definition: global.h:207
< impossible because radioactive
Definition: global.h:47
< converter
Definition: global.h:196
< shield
Definition: global.h:224
< impossible in flight
Definition: global.h:117
< not enough energy
Definition: global.h:80
< too close
Definition: global.h:122
< location for derrick found
Definition: global.h:147
< no other vehicle
Definition: global.h:46
< phazer gun
Definition: global.h:225
< first information
Definition: global.h:132
Language
Application language.
Definition: global.h:174
< nuclear battery available
Definition: global.h:139
< research ended
Definition: global.h:154
< lack of metal (too close)
Definition: global.h:54
< continues
Definition: global.h:37
< more energy
Definition: global.h:89
< vehicle destroyed
Definition: global.h:125
< cannon of insects
Definition: global.h:227
< building too close
Definition: global.h:70
< battery available
Definition: global.h:138
< no stone was transformed
Definition: global.h:78
< Mission not completed
Definition: global.h:124
< research ended
Definition: global.h:150
< lack of uranium
Definition: global.h:105