ScummVM API documentation
chapter_intro_scene.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_SCENES_CHAPTER_INTRO_SCENE_H
23#define HOLLYWOOD_MONSTERS_SCENES_CHAPTER_INTRO_SCENE_H
24
25#include "common/array.h"
26
27#include "hollywood/monsters/music.h"
28#include "hollywood/monsters/scenes/presentation_scene.h"
29
30namespace Hollywood {
31
32class HollywoodEngine;
33
35public:
36 ~ChapterIntroScene() override {}
37
38 bool play();
39
40protected:
41 ChapterIntroScene(HollywoodEngine *vm, const char *debugName);
42
43 virtual const char *resourceArchiveName() const = 0;
44 virtual const char *musicArchiveName() const = 0;
45 virtual uint16 musicCueId() const = 0;
46 virtual uint16 nextState() const = 0;
47 virtual byte activeAudioChapterIndex() const = 0;
48 virtual uint sceneArenaFirstChunk() const = 0;
49 virtual uint sceneArenaLastChunk() const = 0;
50 virtual uint16 sceneViewportXOffset() const;
51 virtual void initializeChapterState();
52 virtual void adjustPaletteAfterLoad();
53 virtual void drawInitialFrame();
54 virtual void runPresentation() = 0;
55 void stopAudio() override;
56 uint presentXOffset() const override;
57
58 bool load();
59 void fadeInPalette();
60 void fadeOutPalette();
61 void rotatePaletteRange(uint firstIndex, uint lastIndex);
62 void drawClipFrameDelta(uint chunkIndex, uint tableEntryCount, byte frameIndex);
63
64 MusicPlayer _music;
65 Common::Array<byte> _paletteResource;
66 IndexedSurfaceBuffer _baseFramebuffer;
67};
68
69} // End of namespace Hollywood
70
71#endif // HOLLYWOOD_MONSTERS_SCENES_CHAPTER_INTRO_SCENE_H
Definition: chapter_intro_scene.h:34
Definition: hollywood.h:47
Definition: graphics.h:74
Definition: music.h:31
Definition: presentation_scene.h:38