ScummVM API documentation
duckman_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 ILLUSIONS_DUCKMAN_CREDITS_H
23 #define ILLUSIONS_DUCKMAN_CREDITS_H
24 
25 #include "illusions/illusions.h"
26 
27 namespace Illusions {
28 
29 class IllusionsEngine_Duckman;
30 
31 struct DCreditsItem {
32  uint32 objectId;
33  bool active;
34  int16 scrollPosIndex;
35  int16 scrollPosY;
36 };
37 
39 public:
41  ~DuckmanCredits();
42  void start();
43 public:
46  uint32 _lastUpdateTicks;
47  uint32 _nextUpdateTicks;
48  int _lastItemIndex;
49  bool _endReached;
50  DCreditsItems _creditsItems;
51  char *_currText;
52  int update(uint flags);
53  char *readNextLine();
54  Common::Point getItemPosition(int index);
55  void charToWChar(char *text, uint16 *wtext, uint size);
56 
57 };
58 
59 } // End of namespace Illusions
60 
61 #endif // ILLUSIONS_ILLUSIONS_H
Definition: actor.h:34
Definition: duckman_credits.h:38
Definition: duckman_credits.h:31
Definition: rect.h:45
Definition: illusions_duckman.h:78