ScummVM API documentation
room308.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_ROOM308_H
23#define MADS_PHANTOM_ROOM308_H
24
25#include "mads/phantom/phantom.h"
26
27namespace MADS {
28namespace Phantom {
29namespace Rooms {
30
31#define local (&scratch)
32#define ss local->sprite
33#define seq local->sequence
34#define aa local->animation
35
36struct 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 anim_0_running;
42 int16 anim_1_running;
43 int16 anim_2_running;
44 int16 anim_3_running;
45 int16 on_floor;
46 int16 prevent;
47 int16 prevent_2;
48
49};
50
51
52/* ========================= Sprite Series =================== */
53
54#define fx_raoul 0 /* rm308a0 */
55#define fx_her 1 /* rm308b0 */
56
57/* ========================= Triggers ======================== */
58
59#define ROOM_308_SHOW_TEXT 60
60
61
62/* ========================= Other Macros ==================== */
63
64
65#define RAOUL_BOTTOM_X 160
66#define RAOUL_BOTTOM_Y 127
67
68#define RAOUL_MIDDLE_X 160
69#define RAOUL_MIDDLE_Y 76
70
71#define HIM_BOTH_BOTTOM_X 160
72#define HIM_BOTH_BOTTOM_Y 104
73
74#define HER_BOTH_BOTTOM_X 161
75#define HER_BOTH_BOTTOM_Y 124
76
77#define CONV_MISC 26
78
79#define HIM_BOTH_TOP_X 160
80#define HIM_BOTH_TOP_Y 27
81
82#define HER_BOTH_TOP_X 161
83#define HER_BOTH_TOP_Y 48
84
85} // namespace Rooms
86} // namespace Phantom
87} // namespace MADS
88
89#endif