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#ifndef SKY_INTRO_H
23#define SKY_INTRO_H
24
25
26#include "common/scummsys.h"
27#include "audio/mixer.h"
28
29namespace Sky {
30
31class Disk;
32class Screen;
33class MusicBase;
34class Sound;
35class Text;
36
37class Intro {
38public:
39 Intro(Disk *disk, Screen *screen, MusicBase *music, Sound *sound, Text *text, Audio::Mixer *mixer, OSystem *system);
40 ~Intro();
41 bool doIntro(bool floppyIntro);
42private:
43 static uint16 _mainIntroSeq[];
44 static uint16 _floppyIntroSeq[];
45 static uint16 _cdIntroSeq[];
46
47 Disk *_skyDisk;
48 Screen *_skyScreen;
49 MusicBase *_skyMusic;
50 Sound *_skySound;
51 Text *_skyText;
52 OSystem *_system;
53 Audio::Mixer *_mixer;
54
55 uint8 *_textBuf, *_saveBuf;
56 uint8 *_bgBuf;
57 uint32 _bgSize;
58 Audio::SoundHandle _voice, _bgSfx;
59
60 int32 _relDelay;
61
62 bool escDelay(uint32 msecs);
63 bool nextPart(uint16 *&data);
64 bool floppyScrollFlirt();
65 bool commandFlirt(uint16 *&data);
66 void showTextBuf();
67 void restoreScreen();
68};
69
70} // End of namespace Sky
71
72#endif // INTRO_H
Definition: mixer.h:70
Definition: mixer.h:49
Definition: system.h:166
Definition: disk.h:59
Definition: intro.h:37
Definition: musicbase.h:55
Definition: screen.h:80
Definition: sound.h:47
Definition: text.h:49
Definition: autoroute.h:28
Definition: atari-screen.h:58