ScummVM API documentation
scene_data.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 HOLLYWOOD_RUNAWAY_SCENE_DATA_H
23#define HOLLYWOOD_RUNAWAY_SCENE_DATA_H
24
25#include "common/rect.h"
26
27namespace Hollywood {
28
29enum RunawayRoomId {
30 kHospitalBedroom = 2020,
31 kHospitalStoreroom = 2060,
32 kHospitalBathroom = 2080,
33 kMuseumOffice = 4030,
34 kMuseumLaboratory = 4050,
35 kMuseumHall = 4060,
36 kMuseumWilly = 4070,
37 kMuseumExhibition = 4090,
38 kMuseumSecurity = 4100,
39 kMuseumKeypad = 4140
40};
41
43 constexpr RunawayHotspot() : x(0), y(0), facing(0), action{0, 0}, approach{0, 0}, actionCursor(0), preferLook(false) {}
44 constexpr RunawayHotspot(int16 xPos, int16 yPos, byte direction, const uint16 (&actions)[2],
45 const int8 (&approaches)[2], Common::Point lookAt, byte cursor = 0, bool lookFirst = false) :
46 x(xPos), y(yPos), facing(direction), action{actions[0], actions[1]},
47 approach{approaches[0], approaches[1]}, lookPosition(lookAt), actionCursor(cursor), preferLook(lookFirst) {}
48 int16 x, y;
49 byte facing;
50 uint16 action[2]; // Look, use; IDs from the original room's action table.
51 int8 approach[2]; // -1: keep facing; 0: face lookPosition; 1: walk and turn; 2/3: walk without turning.
52 Common::Point lookPosition;
53 byte actionCursor; // 0: ordinary hotspot; 3: talk; 4..7: northwest, northeast, southeast, southwest.
54 bool preferLook; // Start with look even when the hotspot has a special action cursor.
55};
56
58 constexpr RunawayItemAction(uint16 roomId, byte itemId, byte hotspotId, uint16 actionId, int8 walk = 1) :
59 room(roomId), item(itemId), hotspot(hotspotId), action(actionId), approach(walk) {}
60 uint16 room;
61 byte item, hotspot;
62 uint16 action;
63 int8 approach;
64};
65
67 uint16 room, action, cue;
68 byte variation;
69};
70
72 uint16 room, action, destination;
73 int16 x, y;
74 bool upperFloor;
75 bool door;
76};
77
79 uint16 number, width, height;
80 const RunawayHotspot *hotspots;
81 uint hotspotCount;
82 byte light[10][3];
83 Common::Point entry;
84 const RunawayResponse *responses;
85 uint responseCount;
86 const RunawayItemAction *itemActions;
87 uint itemActionCount;
88 const RunawayExit *exits;
89 uint exitCount;
90};
91
92extern const RunawayRoom kRunawayScene2020;
93extern const RunawayRoom kRunawayScene2060;
94extern const RunawayRoom kRunawayScene2080;
95extern const RunawayRoom kRunawayScene4030;
96extern const RunawayRoom kRunawayScene4050;
97extern const RunawayRoom kRunawayScene4060;
98extern const RunawayRoom kRunawayScene4070;
99extern const RunawayRoom kRunawayScene4090;
100extern const RunawayRoom kRunawayScene4100;
101extern const RunawayRoom kRunawayScene4140;
102extern const RunawayRoom kRunawayScene5010;
103extern const RunawayRoom kRunawayScene5020;
104extern const RunawayRoom kRunawayScene5050;
105extern const RunawayRoom kRunawayScene5060;
106extern const RunawayRoom kRunawayScene5070;
107extern const RunawayRoom kRunawayScene5080;
108extern const RunawayRoom kRunawayScene5100;
109extern const RunawayRoom kRunawayScene5110;
110extern const RunawayRoom kRunawayScene5130;
111extern const RunawayRoom kRunawayScene5140;
112extern const RunawayRoom kRunawayScene5160;
113extern const RunawayRoom kRunawayScene5170;
114extern const RunawayRoom kRunawayScene6030;
115extern const RunawayRoom kRunawayScene6080;
116extern const RunawayRoom kRunawayScene6090;
117extern const RunawayRoom kRunawayScene6130;
118extern const RunawayRoom kRunawayScene6180;
119extern const RunawayRoom kRunawayScene6190;
120extern const RunawayRoom kRunawayScene6200;
121extern const RunawayRoom kRunawayScene6210;
122extern const RunawayRoom kRunawayScene6220;
123extern const RunawayRoom kRunawayScene6226;
124extern const RunawayRoom kRunawayScene6240;
125extern const RunawayRoom kRunawayScene6250;
126extern const RunawayRoom kRunawayScene6260;
127extern const RunawayRoom kRunawayScene6263;
128extern const RunawayRoom kRunawayScene6270;
129extern const RunawayRoom kRunawayScene6280;
130extern const RunawayRoom kRunawayScene6290;
131extern const RunawayRoom kRunawayScene6300;
132extern const RunawayRoom kRunawayScene6350;
133extern const RunawayRoom kRunawayScene6370;
134extern const RunawayRoom kRunawayScene6390;
135extern const RunawayRoom kRunawayScene7010;
136extern const RunawayRoom kRunawayScene7020;
137extern const RunawayRoom kRunawayScene7030;
138extern const RunawayRoom kRunawayScene7040;
139extern const RunawayRoom kRunawayScene7050;
140extern const RunawayRoom kRunawayScene8090;
141extern const RunawayRoom kRunawayScene8100;
142extern const RunawayRoom kRunawayScene8130;
143extern const RunawayRoom kRunawayScene8180;
144extern const RunawayRoom kRunawayScene8190;
145extern const RunawayRoom kRunawayScene8200;
146extern const RunawayRoom kRunawayScene8210;
147extern const RunawayRoom kRunawayScene8220;
148extern const RunawayRoom kRunawayScene8226;
149extern const RunawayRoom kRunawayScene8230;
150extern const RunawayRoom kRunawayScene8240;
151extern const RunawayRoom kRunawayScene8260;
152extern const RunawayRoom kRunawayScene8263;
153extern const RunawayRoom kRunawayScene8290;
154extern const RunawayRoom kRunawayScene8300;
155extern const RunawayRoom kRunawayScene8350;
156extern const RunawayRoom kRunawayScene8370;
157extern const RunawayRoom kRunawayScene8380;
158extern const RunawayRoom kRunawayScene8400;
159extern const RunawayRoom kRunawayScene8410;
160extern const RunawayRoom kRunawayScene8420;
161extern const RunawayRoom kRunawayScene9010;
162extern const RunawayRoom kRunawayScene9020;
163extern const RunawayRoom kRunawayScene9030;
164
165const RunawayRoom *findRunawayRoom(uint16 number);
166
167} // End of namespace Hollywood
168
169#endif // HOLLYWOOD_RUNAWAY_SCENE_DATA_H
Definition: rect.h:144
Definition: scene_data.h:71
Definition: scene_data.h:42
Definition: scene_data.h:57
Definition: scene_data.h:66
Definition: scene_data.h:78