ScummVM API documentation
room207.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_ROOM207_H
23 #define MADS_PHANTOM_ROOM207_H
24 
25 #include "mads/madsv2/phantom/phantom.h"
26 
27 namespace MADS {
28 namespace MADSV2 {
29 namespace Phantom {
30 namespace Rooms {
31 
32 /* ---- Scratch (room-local variables) ---- */
33 
34 struct Scratch {
35  int16 sprite[15]; // Sprite series handles
36  int16 sequence[15]; // Sequence handles
37  int16 animation[4]; // Animation handles
38  int16 prevent;
39  int16 anim_0_running;
40 };
41 
42 #define local (&scratch)
43 #define ss local->sprite
44 #define seq local->sequence
45 #define aa local->animation
46 
47 /* ---- Sprite series indices ---- */
48 
49 #define fx_sit 0 /* rm207a0 */
50 #define fx_curtain 1 /* rm207c0 */
51 #define fx_lights 2 /* rm207x0 */
52 
53 /* ---- Trigger constants ---- */
54 
55 #define ROOM_207_DOOR_CLOSES 60 /* defined but not used */
56 
57 /* ---- Player / world positions ---- */
58 
59 #define PLAYER_X_FROM_205 159
60 #define PLAYER_Y_FROM_205 147
61 
62 #define SEAT_X 139
63 #define SEAT_Y 124
64 
65 /* ---- Entry points ---- */
66 
67 void room_207_preload();
68 void room_207_init();
69 void room_207_daemon();
70 void room_207_pre_parser();
71 void room_207_parser();
72 
73 } // namespace Rooms
74 } // namespace Phantom
75 } // namespace MADSV2
76 } // namespace MADS
77 
78 #endif
Definition: mps_installer.h:31