ScummVM API documentation
room110.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_ROOM110_H
23#define MADS_PHANTOM_ROOM110_H
24
25#include "mads/phantom/rooms/section1.h"
26#include "mads/phantom/global.h"
27
28namespace MADS {
29namespace Phantom {
30namespace Rooms {
31
32#define local (&scratch)
33#define ss local->sprite
34#define seq local->sequence
35#define aa local->animation
36
37struct 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
43};
44
45
46/* ========================= Sprite Series ========================= */
47
48#define fx_1993 0 /* rm110z */
49#define fx_take_9 1 /* rdr_9 */
50#define fx_door 2 /* rm110x0 */
51#define fx_door_closed 3 /* rm110x1 */
52
53
54/* ========================= Player positions ====================== */
55
56#define PLAYER_X_FROM_109 310
57#define PLAYER_Y_FROM_109 150
58
59#define PLAYER_X_FROM_112 261
60#define PLAYER_Y_FROM_112 121
61
62#define WALK_TO_X_FROM_112 221
63#define WALK_TO_Y_FROM_112 131
64
65#define OFF_SCREEN_X_FROM_109 335
66#define OFF_SCREEN_Y_FROM_109 150
67
68
69/* ========================= Door approach positions =============== */
70
71#define FRONT_LEFT_DOOR_X 111
72#define FRONT_LEFT_DOOR_Y 126
73
74#define FRONT_RIGHT_DOOR_X 221
75#define FRONT_RIGHT_DOOR_Y 131
76
77#define INSIDE_RIGHT_DOOR_X 261
78#define INSIDE_RIGHT_DOOR_Y 120
79
80
81extern void room_110_init();
82extern void room_110_pre_parser();
83extern void room_110_parser();
84extern void room_110_preload();
85
86} // namespace Rooms
87} // namespace Phantom
88} // namespace MADS
89
90#endif