ScummVM API documentation
credits.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 #ifndef DRAGONS_CREDITS_H
22 #define DRAGONS_CREDITS_H
23 
24 #include "graphics/surface.h"
25 #include "graphics/pixelformat.h"
26 
27 namespace Dragons {
28 
29 class BigfileArchive;
30 class DragonsEngine;
31 class FontManager;
32 
33 class Credits {
34 private:
35  DragonsEngine *_vm;
36  FontManager *_fontManager;
37  BigfileArchive *_bigfileArchive;
38  Graphics::Surface *_surface;
39  bool _running;
40  int16 _yOffset;
41  int16 _linesRemaining;
42  int16 _updateCounter;
43 
44  byte *_creditsData;
45  char *_curPtr;
46  uint32 _dataLength;
47  uint32 _curPosition;
48 
49 public:
50  Credits(DragonsEngine *vm, FontManager *fontManager, BigfileArchive *bigfileArchive);
51  void start();
52  bool isRunning();
53  void draw();
54  void update();
55 private:
56  void cleanup();
57  void convertToWideChar(uint16 *destBuf, const byte *text, uint16 maxLength);
58 };
59 
60 } // End of namespace Dragons
61 
62 #endif //DRAGONS_CREDITS_H
Definition: surface.h:66
Definition: bigfile.h:42
Definition: credits.h:33
Definition: actor.h:26
Definition: font.h:52
Definition: dragons.h:167