ScummVM API documentation
room506.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_PHANTOM_ROOM506_H
23
#define MADS_PHANTOM_ROOM506_H
24
25
#include "mads/madsv2/core/general.h"
26
27
namespace
MADS
{
28
namespace
MADSV2 {
29
namespace
Phantom {
30
namespace
Rooms {
31
32
#define local (&scratch)
33
#define ss local->sprite
34
#define seq local->sequence
35
#define aa local->animation
36
37
struct
Scratch {
/* Room local variables */
38
39
int16 sprite[15];
/* Sprite series handles */
40
int16 sequence[15];
/* Sequence handles */
41
int16 animation[4];
/* Animation handles */
42
int16 anim_0_running;
43
int16 prevent;
44
int16 ascending;
45
46
};
47
48
49
/* ========================= Sprite Series =================== */
50
51
#define fx_left_flame 0
/* rm506x0 */
52
#define fx_middle_flame 1
/* rm506x1 */
53
#define fx_right_flame 2
/* rm506x2 */
54
#define fx_door 3
/* rm506x3 */
55
#define fx_take_6 4
/* rdrr_6 */
56
#define fx_oar 5
/* rm506p0 */
57
#define fx_christine 6
/* *chr_6 */
58
/* *chr_3 */
59
/* *chr_2 */
60
#define fx_raoul_ascend 7
/* rm506a1 */
61
#define fx_raoul_decend 8
/* rm506a0 */
62
63
64
/* ========================= Triggers ======================== */
65
66
#define ROOM_506_DOOR_CLOSES 60
67
#define ROOM_506_DOOR_OPENS 65
68
#define ROOM_506_DONE_GOING_UP 90
69
#define ROOM_506_DONE_GOING_DOWN 95
70
71
/* ========================= Other Macros ==================== */
72
73
#define PLAYER_X_FROM_501 0
74
#define PLAYER_Y_FROM_501 142
75
76
#define WALK_TO_X_FROM_501 23
77
#define WALK_TO_Y_FROM_501 145
78
79
#define PLAYER_X_FROM_504 186
80
#define PLAYER_Y_FROM_504 122
81
82
#define WALK_TO_X_FROM_504 303
83
#define WALK_TO_Y_FROM_504 98
84
85
#define DYNAMIC_CHR_WALK_TO_X 79
86
#define DYNAMIC_CHR_WALK_TO_Y 133
87
88
#define END_OF_DECEND_X 189
89
#define END_OF_DECEND_Y 123
90
91
#define START_OF_ASCEND_X 191
92
#define START_OF_ASCEND_Y 118
93
94
#define FRONT_OF_DOOR_X 33
95
#define FRONT_OF_DOOR_Y 142
96
97
#define CONV_MISC 26
98
99
}
// namespace Rooms
100
}
// namespace Phantom
101
}
// namespace MADSV2
102
}
// namespace MADS
103
104
#endif
MADS
Definition:
mps_installer.h:31
engines
mads
madsv2
phantom
rooms
room506.h
Generated on Tue Jul 21 2026 09:14:41 for ScummVM API documentation by
1.8.13