ScummVM API documentation
room409.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_ROOM409_H
23
#define MADS_PHANTOM_ROOM409_H
24
25
#include "mads/core/general.h"
26
27
namespace
MADS
{
28
namespace
Phantom {
29
namespace
Rooms {
30
31
#define local (&scratch)
32
#define ss local->sprite
33
#define seq local->sequence
34
#define aa local->animation
35
36
struct
Scratch {
/* Room local variables */
37
38
int16 sprite[15];
/* Sprite series handles */
39
int16 sequence[15];
/* Sequence handles */
40
int16 animation[4];
/* Animation handles */
41
int16 frame_is_here;
/* T if any frame is here */
42
int16 dyn_red;
43
int16 dyn_green;
44
int16 dyn_blue;
45
int16 dyn_yellow;
46
int16 frame_here_for_taking;
/* T if a specific frame is here */
47
48
49
};
50
51
52
/* ========================= Sprite Series =================== */
53
54
#define fx_bend_down_9 0
/* rrd_9 */
55
#define fx_sword 1
/* rm409p0 */
56
#define fx_red_frame 2
/* rm409f0 */
57
#define fx_green_frame 3
/* rm409f1 */
58
#define fx_blue_frame 4
/* rm409f2 */
59
#define fx_yellow_frame 5
/* rm409f3 */
60
#define fx_door 6
/* rm409x0 */
61
#define fx_gas 7
/* rm409a0 */
62
#define fx_take_9 8
/* rdr_9 */
63
64
65
66
67
/* ======================== Triggers ========================= */
68
69
#define ROOM_409_DIE 60
70
#define ROOM_409_DOOR_OPENS 65
71
72
73
/* ========================= Other Macros ==================== */
74
75
#define NORTH_X 195
76
#define NORTH_Y 92
77
78
#define WALK_TO_NORTH_X 195
79
#define WALK_TO_NORTH_Y 107
80
81
#define SOUTH_X 184
82
#define SOUTH_Y 145
83
84
#define PANEL_X 229
85
#define PANEL_Y 106
86
87
#define DOOR_X 191
88
#define DOOR_Y 104
89
90
}
// namespace Rooms
91
}
// namespace Phantom
92
}
// namespace MADS
93
94
#endif
MADS
Definition:
anim_timer.h:27
engines
mads
phantom
rooms
room409.h
Generated on Sun Aug 23 2026 09:14:50 for ScummVM API documentation by
1.8.13