ScummVM API documentation
skf_player.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 ULTIMA8_GFX_SKFPLAYER_H
23 #define ULTIMA8_GFX_SKFPLAYER_H
24 
25 #include "ultima/shared/std/containers.h"
26 #include "ultima/ultima8/gfx/movie_player.h"
27 #include "ultima/ultima8/gfx/render_surface.h"
28 #include "ultima/ultima8/gfx/palette.h"
29 
30 namespace Ultima {
31 namespace Ultima8 {
32 
33 struct SKFEvent;
34 class RawArchive;
35 class RenderedText;
36 class Palette;
37 
38 class SKFPlayer : public MoviePlayer {
39 public:
40  SKFPlayer(Common::SeekableReadStream *rs, int width, int height, bool introMusicHack = false);
41  ~SKFPlayer();
42 
43  void run();
44  void paint(RenderSurface *surf, int lerp);
45 
46  void start();
47  void stop();
48  bool isPlaying() const {
49  return _playing;
50  }
51 
52 private:
53 
54  void parseEventList(Common::ReadStream *rs);
55 
56  int _width, _height;
57  RawArchive *_skf;
59  unsigned int _curFrame, _curObject;
60  unsigned int _curAction;
61  unsigned int _curEvent;
62  bool _playing;
63  unsigned int _lastUpdate;
64  unsigned int _timer;
65  unsigned int _frameRate;
66  uint8 _fadeColour, _fadeLevel;
67  RenderSurface *_buffer;
68  Palette _palette;
69  RenderedText *_subs;
70  int _subtitleY;
71  bool _introMusicHack;
72 };
73 
74 } // End of namespace Ultima8
75 } // End of namespace Ultima
76 
77 #endif
Definition: skf_player.h:38
Definition: movie_player.h:30
Definition: raw_archive.h:33
Definition: render_surface.h:40
Definition: stream.h:745
Definition: rendered_text.h:30
Definition: detection.h:27
Definition: stream.h:385
Definition: containers.h:38
Definition: palette.h:36
Definition: atari-screen.h:42