ScummVM API documentation
room307.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_ROOM307_H
23 #define MADS_PHANTOM_ROOM307_H
24 
25 #include "mads/madsv2/phantom/phantom.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 
43 };
44 
45 
46 /* ========================= Sprite Series =================== */
47 
48 #define fx_test 0 /* rm301x0 */
49 #define fx_bend_down_9 1 /* rrd_9 */
50 #define fx_green_frame 2 /* rm307p0 */
51 #define fx_door 3 /* rm307x0 */
52 #define fx_take_9 4 /* rdr_9 */
53 
54 
55 
56 /* ========================= Triggers ======================== */
57 
58 #define ROOM_307_DOOR_CLOSES 60
59 #define ROOM_307_DOOR_OPENS 70
60 
61 
62 /* ========================= Other Macros ==================== */
63 
64 #define OFF_SCREEN_X_FROM_303 340
65 #define OFF_SCREEN_Y_FROM_303 137
66 #define PLAYER_X_FROM_303 304
67 #define PLAYER_Y_FROM_303 137
68 
69 #define START_X_FROM_308 18
70 #define START_Y_FROM_308 134
71 #define END_X_FROM_308 41
72 #define END_Y_FROM_308 137
73 
74 #define OPEN_DOOR_X 28
75 #define OPEN_DOOR_Y 137
76 
77 } // namespace Rooms
78 } // namespace Phantom
79 } // namespace MADSV2
80 } // namespace MADS
81 
82 #endif
Definition: mps_installer.h:31