ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
globals.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
26 #ifndef M4_CORE_GLOBALS_H
27 #define M4_CORE_GLOBALS_H
28 
29 #include "common/array.h"
30 #include "common/serializer.h"
31 #include "m4/fileio/sys_file.h"
32 #include "m4/m4_types.h"
33 
34 namespace M4 {
35 
39 enum {
40  GLB_TIME = 0,
41  GLB_WATCH_DOG = 1,
42  GLB_MIN_Y = 2,
43  GLB_MAX_Y = 3,
44  GLB_MIN_SCALE = 4,
45  GLB_MAX_SCALE = 5,
46  GLB_SCALER = 6,
47 
48  GLB_TEMP_1 = 7,
49  GLB_TEMP_2 = 8,
50  GLB_TEMP_3 = 9,
51  GLB_TEMP_4 = 10,
52  GLB_TEMP_5 = 11,
53  GLB_TEMP_6 = 12,
54  GLB_TEMP_7 = 13,
55  GLB_TEMP_8 = 14,
56  GLB_TEMP_9 = 15,
57  GLB_TEMP_10 = 16,
58  GLB_TEMP_11 = 17,
59  GLB_TEMP_12 = 18,
60  GLB_TEMP_13 = 19,
61  GLB_TEMP_14 = 20,
62  GLB_TEMP_15 = 21,
63  GLB_TEMP_16 = 22,
64  GLB_TEMP_17 = 23,
65  GLB_TEMP_18 = 24,
66  GLB_TEMP_19 = 25,
67  GLB_TEMP_20 = 26,
68  GLB_TEMP_21 = 27,
69  GLB_TEMP_22 = 28,
70  GLB_TEMP_23 = 29,
71  GLB_TEMP_24 = 30,
72  GLB_TEMP_25 = 31,
73  GLB_TEMP_26 = 32,
74  GLB_TEMP_27 = 33,
75  GLB_TEMP_28 = 34,
76  GLB_TEMP_29 = 35,
77  GLB_TEMP_30 = 36,
78  GLB_TEMP_31 = 37,
79  GLB_TEMP_32 = 38,
80 
81  GLB_SCRATCH_VARS = 7, // 19-16 globals reserved for the compiler
82  GLB_USER_VARS = 17 // 17+ globals for the applications programmer
83 };
84 
85 constexpr int GLB_SHARED_VARS = 256;
86 
87 } // namespace M4
88 
89 #endif
Definition: database.h:28