ScummVM API documentation
room401.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_ROOM401_H
23 #define MADS_PHANTOM_ROOM401_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 anim_0_running;
43  int16 frame_is_here; /* T if any frame is here */
44  int16 dyn_red;
45  int16 dyn_green;
46  int16 dyn_blue;
47  int16 dyn_yellow;
48  int16 frame_here_for_taking; /* T if a specific frame is here */
49 
50 };
51 
52 
53 /* ========================= Sprite Series =================== */
54 
55 #define fx_west 0 /* rm403c0 */
56 #define fx_north 1 /* rm403c1 */
57 #define fx_east 2 /* rm403c2 */
58 
59 #define fx_puddle 3
60 #define fx_rat_nest 4
61 #define fx_skull 5
62 #define fx_pot 6
63 #define fx_brick 7
64 
65 #define fx_bend_down_9 8 /* rrd_9 */
66 #define fx_red_frame 9 /* rm401f0 */
67 #define fx_green_frame 10 /* rm401f1 */
68 #define fx_blue_frame 11 /* rm401f2 */
69 #define fx_yellow_frame 12 /* rm401f3 */
70 
71 /* ========================= Other Macros ==================== */
72 
73 #define NORTH_X 128
74 #define NORTH_Y 79
75 
76 #define WALK_TO_NORTH_X 128
77 #define WALK_TO_NORTH_Y 91
78 
79 #define WEST_X 4
80 #define WEST_Y 113
81 
82 #define WALK_TO_WEST_X 48
83 #define WALK_TO_WEST_Y 113
84 
85 #define EAST_X 311
86 #define EAST_Y 115
87 
88 #define WALK_TO_EAST_X 271
89 #define WALK_TO_EAST_Y 123
90 
91 #define SOUTH_X 142
92 #define SOUTH_Y 146
93 
94 
95 } // namespace Rooms
96 } // namespace Phantom
97 } // namespace MADSV2
98 } // namespace MADS
99 
100 #endif
Definition: mps_installer.h:31