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 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (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, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 */ 22 23 #ifndef SKY_INTRO_H 24 #define SKY_INTRO_H 25 26 27 #include "common/scummsys.h" 28 #include "audio/mixer.h" 29 30 namespace Sky { 31 32 class Disk; 33 class Screen; 34 class MusicBase; 35 class Sound; 36 class Text; 37 38 class Intro { 39 public: 40 Intro(Disk *disk, Screen *screen, MusicBase *music, Sound *sound, Text *text, Audio::Mixer *mixer, OSystem *system); 41 ~Intro(); 42 bool doIntro(bool floppyIntro); 43 private: 44 static uint16 _mainIntroSeq[]; 45 static uint16 _floppyIntroSeq[]; 46 static uint16 _cdIntroSeq[]; 47 48 Disk *_skyDisk; 49 Screen *_skyScreen; 50 MusicBase *_skyMusic; 51 Sound *_skySound; 52 Text *_skyText; 53 OSystem *_system; 54 Audio::Mixer *_mixer; 55 56 uint8 *_textBuf, *_saveBuf; 57 uint8 *_bgBuf; 58 uint32 _bgSize; 59 Audio::SoundHandle _voice, _bgSfx; 60 61 int32 _relDelay; 62 63 bool escDelay(uint32 msecs); 64 bool nextPart(uint16 *&data); 65 bool floppyScrollFlirt(); 66 bool commandFlirt(uint16 *&data); 67 void showTextBuf(); 68 void restoreScreen(); 69 }; 70 71 } // End of namespace Sky 72 73 #endif // INTRO_H 74