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 
29 namespace Sky {
30 
31 class Disk;
32 class Screen;
33 class MusicBase;
34 class Sound;
35 class Text;
36 
37 class Intro {
38 public:
39  Intro(Disk *disk, Screen *screen, MusicBase *music, Sound *sound, Text *text, Audio::Mixer *mixer, OSystem *system);
40  ~Intro();
41  bool doIntro(bool floppyIntro);
42 private:
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: musicbase.h:55
Definition: atari-screen.h:60
Definition: disk.h:37
Definition: mixer.h:49
Definition: mixer.h:59
Definition: screen.h:56
Definition: sound.h:47
Definition: text.h:48
Definition: system.h:161
Definition: autoroute.h:28
Definition: intro.h:37