ScummVM API documentation
room309.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_ROOM309_H
23 #define MADS_PHANTOM_ROOM309_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  int16 boat_action; /* pulling up in boat */
44  int16 boat_frame;
45  int16 anim_0_running;
46 
47  int16 chris_talk_count;
48 
49 };
50 
51 
52 /* ========================= Sprite Series =================== */
53 
54 #define fx_door 0 /* rm309x0 */
55 #define fx_take_9 1 /* rdr_9 */
56 #define fx_boat 2 /* rm309x1 */
57 
58 /* ========================= Triggers ======================== */
59 
60 #define ROOM_309_DOOR_OPENS 60
61 #define ROOM_309_DOOR_CLOSES 65
62 #define ROOM_309_OUT_OF_BOAT 70
63 
64 /* ========================= Other Macros ==================== */
65 
66 #define PLAYER_X_FROM_404 319
67 #define PLAYER_Y_FROM_404 136
68 
69 #define WALK_TO_X_FROM_404 281
70 #define WALK_TO_Y_FROM_404 148
71 
72 #define PLAYER_X_FROM_308 0
73 #define PLAYER_Y_FROM_308 121
74 
75 #define WALK_TO_X_FROM_308 28
76 #define WALK_TO_Y_FROM_308 142
77 
78 #define PLAYER_X_FROM_310 209
79 #define PLAYER_Y_FROM_310 144
80 
81 #define DYNAMIC_CHR_WALK_TO_X 62
82 #define DYNAMIC_CHR_WALK_TO_Y 146
83 
84 #define CONV_MISC 26
85 
86 #define ACTION_TALK 0
87 #define ACTION_OTHER 1
88 
89 #define WALK_TO_CAT_NO_X 285
90 #define WALK_TO_CAT_NO_Y 147
91 
92 #define DOOR_X 16
93 #define DOOR_Y 139
94 
95 } // namespace Rooms
96 } // namespace Phantom
97 } // namespace MADSV2
98 } // namespace MADS
99 
100 #endif
Definition: mps_installer.h:31