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
22#ifndef QUEEN_CREDITS_H
23#define QUEEN_CREDITS_H
24
25#include "common/str-array.h"
26#include "queen/defs.h"
27
28namespace Queen {
29
30class QueenEngine;
31class LineReader;
32
33class Credits {
34public:
35
36 Credits(QueenEngine *vm, const char* filename);
37
39 void update();
40
42 void nextRoom();
43
45 bool running() const { return _running; }
46
47private:
48
49 struct Line {
50 short x, y, color, fontSize;
51 const char *text;
52 };
53
55 Line _list[19];
56
58 bool _running;
59
61 int _count;
62
64 int _pause;
65
67 int _justify;
68
70 int _fontSize;
71
73 int _color;
74
76 int _zone;
77
78 uint _lineNum;
79
81 Common::StringArray _credits;
82
83 QueenEngine *_vm;
84};
85
86} // End of namespace Queen
87
88#endif
Definition: credits.h:33
void update()
update/display credits for current room
bool running() const
returns true if the credits are running
Definition: credits.h:45
void nextRoom()
handles room switching
Definition: queen.h:87
Definition: bankman.h:28