ScummVM API documentation
intro.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/*
23 * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
24 * Copyright (c) 1994-1995 Mike: Mark and Thomas Thurman.
25 */
26
27#ifndef AVALANCHE_INTRO_H
28#define AVALANCHE_INTRO_H
29
30#include "common/str.h"
31#include "common/array.h"
32
33namespace Audio {
34class SoundHandle;
35}
36
37namespace Avalanche {
38
39class AvalancheEngine;
40
41class Intro {
42public:
44 virtual ~Intro();
45
46 void run();
47
48private:
49 void loadText();
50 void resetPlanes();
51 void movePlanes();
52 void plotStar(uint8 plane, int x, int y);
53 void plotStars(uint8 plane, int y);
54 void combineAndDraw();
55
56 AvalancheEngine *_vm;
58
59 // Each plane is 320x200 (40 bytes per row)
60 // Plane 0-2: Different pace stars, Plane 3: Scrolling text
61 uint8 *_planes[4];
62
63 int _thisLine;
64 int _nextBitline;
65 bool _cutOut;
66 int _displayCounter;
67
68 Audio::SoundHandle *_musicHandle;
69};
70
71} // End of namespace Avalanche
72
73#endif // AVALANCHE_INTRO_H
Definition: mixer.h:49
Definition: avalanche.h:78
Definition: intro.h:41
Definition: system.h:39