ScummVM API documentation
travel_screen.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_MONSTERS_GAMEPLAY_TRAVEL_SCREEN_H
23#define HOLLYWOOD_MONSTERS_GAMEPLAY_TRAVEL_SCREEN_H
24
25#include "common/array.h"
26#include "common/types.h"
27#include "graphics/managed_surface.h"
28
29#include "hollywood/monsters/graphics.h"
30
31namespace Hollywood {
32
33class HollywoodEngine;
34
35// Handles the notebook chunks of RESOURCE.I04, both as an inventory viewer and
36// as the interactive destination selector entered through state 0xffff.
38public:
40
41 bool showViewer();
42 bool showUnlockTransition(byte slotIndex);
43 bool runSelection(byte currentChapterId, uint16 &selectedStateId);
44
45private:
46 bool load(bool loadSelectionMask);
47 bool readChunk(uint index, Common::Array<byte> &destination, uint expectedSize);
48 void composeUnlockedSlots();
49 void expandSelectionMask();
50 void applySlotPalette(byte slotIndex, bool highlighted);
51 bool isActiveSlot(byte slotIndex) const;
52 byte slotAtPoint(int x, int y) const;
53 uint16 destinationState(byte destinationId, byte currentChapterId) const;
54 void present();
55 void presentBlack();
56
57 HollywoodEngine *_vm;
58 Common::Array<byte> _palette;
59 Common::Array<byte> _tilePixels;
60 Common::Array<byte> _fillRuns;
61 IndexedSurfaceBuffer _framebuffer;
62 IndexedSurfaceBuffer _selectionMask;
64 Palette6Bit _displayPalette;
65};
66
67} // End of namespace Hollywood
68
69#endif // HOLLYWOOD_MONSTERS_GAMEPLAY_TRAVEL_SCREEN_H
Definition: managed_surface.h:51
Definition: hollywood.h:47
Definition: graphics.h:74
Definition: graphics.h:51
Definition: travel_screen.h:37