ScummVM API documentation
global.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
22#ifndef MADS_CORE_GLOBAL_H
23#define MADS_CORE_GLOBAL_H
24
25#include "mads/core/general.h"
26
27namespace MADS {
28
29extern char global_release_name[];
30extern char global_release_version[];
31extern char global_release_date[];
32extern char global_release_copyright[];
33
34#define GLOBAL_LIST_SIZE 210 /* Global variables array size */
35
36#define MESSAGE_COLOR (((KERNEL_MESSAGE_COLOR_BASE + 1) << 8) + KERNEL_MESSAGE_COLOR_BASE)
37#define MESSAGE_COLOR_2 (((KERNEL_MESSAGE_COLOR_BASE_2 + 1) << 8) + KERNEL_MESSAGE_COLOR_BASE_2)
38#define MESSAGE_COLOR_3 (((KERNEL_MESSAGE_COLOR_BASE_3 + 1) << 8) + KERNEL_MESSAGE_COLOR_BASE_3)
39
40/* Global macros */
41
42constexpr int YES = 1;
43constexpr int NO = 0;
44
45#define SCORE_LOOK_SPHERE_106 1
46#define SCORE_READ_BOOK_101 2
47#define SCORE_SHIFT_INTO_SEAL_113 4
48#define SCORE_PUSH_BUTTON_119 8
49#define SCORE_WEAR_CROWN_119 16
50#define SCORE_MAKE_ACID_DRIP_605 32
51#define SCORE_CROSS_PILLARS 64
52#define SCORE_ENTER_609 128
53#define SCORE_CROSS_SKY 256
54#define SCORE_JUMP_INTO_WELL 512
55#define SCORE_MAKE_NOISE_BIRDCALL 1024
56#define SCORE_TAKE_BONE 2048
57
58/* section 1 macros */
59
60#define START_MACROS_HERE 1 /* enter description here */
61
62
63/* ==================== System variables ===================== */
64
65constexpr int walker_timing = 0; /* Stop walker timing (long) */
66constexpr int walker_timing_2 = 1;
67constexpr int player_hyperwalked = 3;
68
69extern char global_release_name[];
70extern char global_release_version[];
71extern char global_release_date[];
72extern char global_release_copyright[];
73
74extern int16 global[];
75extern int global_list_size;
76
77extern void global_init_code();
78extern void global_daemon_code();
79extern void global_pre_parser_code();
80extern void global_parser_code();
81extern void global_error_code();
82extern void global_room_init();
83extern void global_verb_filter();
84extern void global_sound_driver();
85extern void global_section_constructor();
86extern void global_write_config_file();
87extern void global_load_config_parameters();
88extern void global_unload_config_parameters();
89
90extern void init_global();
91
92} // namespace MADS
93
94#endif