ScummVM API documentation
room404.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_ROOM404_H
23 #define MADS_PHANTOM_ROOM404_H
24 
25 #include "mads/madsv2/core/general.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 frame_is_here; /* T if any frame is here */
43  int16 dyn_red;
44  int16 dyn_green;
45  int16 dyn_blue;
46  int16 dyn_yellow;
47  int16 frame_here_for_taking; /* T if a specific frame is here */
48  int16 anim_0_running;
49 
50 };
51 
52 
53 /* ========================= Sprite Series =================== */
54 
55 #define fx_west 0 /* rm404c0 */
56 #define fx_north 1 /* rm404c1 */
57 #define fx_east 2 /* rm404c2 */
58 
59 #define fx_rat_nest 3
60 #define fx_web 4
61 #define fx_pot 5
62 #define fx_puddle 6
63 #define fx_block 7
64 #define fx_fallen_block 8
65 
66 #define fx_bend_down_9 9 /* rrd_9 */
67 #define fx_red_frame 10 /* rm401f0 */
68 #define fx_green_frame 11 /* rm401f1 */
69 #define fx_blue_frame 12 /* rm401f2 */
70 #define fx_yellow_frame 13 /* rm401f3 */
71 
72 
73 /* ========================= Triggers ======================== */
74 
75 #define ROOM_404_SHOW_TEXT 60
76 
77 /* ========================= Other Macros ==================== */
78 
79 #define NORTH_X 156
80 #define NORTH_Y 98
81 
82 #define WALK_TO_NORTH_X 156
83 #define WALK_TO_NORTH_Y 117
84 
85 #define WEST_X 17
86 #define WEST_Y 131
87 
88 #define WALK_TO_WEST_X 60
89 #define WALK_TO_WEST_Y 131
90 
91 #define EAST_X 319
92 #define EAST_Y 135
93 
94 #define WALK_TO_EAST_X 279
95 #define WALK_TO_EAST_Y 135
96 
97 #define SOUTH_X 175
98 #define SOUTH_Y 147
99 
100 } // namespace Rooms
101 } // namespace Phantom
102 } // namespace MADSV2
103 } // namespace MADS
104 
105 #endif
Definition: mps_installer.h:31