ScummVM API documentation
room303.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_ROOM303_H
23 #define MADS_PHANTOM_ROOM303_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  int16 dynamic_hemp; /* Dynamic HS for hemp */
43  int16 anim_0_running;
44  int16 frame_guard;
45 
46 };
47 
48 
49 /* ========================= Sprite Series =================== */
50 
51 #define fx_1993 0 /* rm303z */
52 #define fx_large_note 2 /* rm303p0 */
53 
54 
55 /* ========================= Triggers ======================== */
56 
57 #define ROOM_303_DONE_CLIMBING_UP 60
58 
59 
60 /* ========================= Other Macros ==================== */
61 
62 #define OFF_SCREEN_X_FROM_307 -20
63 #define OFF_SCREEN_Y_FROM_307 135
64 #define PLAYER_X_FROM_307 16
65 #define PLAYER_Y_FROM_307 135
66 
67 #define OFF_SCREEN_X_FROM_302 340
68 #define OFF_SCREEN_Y_FROM_302 136
69 #define PLAYER_X_FROM_302 303
70 #define PLAYER_Y_FROM_302 136
71 
72 #define PLAYER_X_FROM_305 117
73 #define PLAYER_Y_FROM_305 92
74 
75 #define DYN_HEMP_X 74
76 #define DYN_HEMP_Y 92
77 #define DYN_HEMP_XS 7
78 #define DYN_HEMP_YS 12
79 #define DYN_HEMP_WALK_TO_X 95
80 #define DYN_HEMP_WALK_TO_Y 107
81 
82 #define CLIMB_X 110
83 #define CLIMB_Y 95
84 
85 #define CONV_MISC 26
86 
87 } // namespace Rooms
88 } // namespace Phantom
89 } // namespace MADSV2
90 } // namespace MADS
91 
92 #endif
Definition: mps_installer.h:31