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 /*
23  * Copyright (C) 2006-2010 - Frictional Games
24  *
25  * This file is part of Penumbra Overture.
26  */
27 
28 #ifndef GAME_CREDITS_H
29 #define GAME_CREDITS_H
30 
31 #include "hpl1/engine/engine.h"
32 
33 #include "hpl1/penumbra-overture/GameTypes.h"
34 
35 using namespace hpl;
36 
37 class cInit;
38 
39 //-------------------------------------------------
40 
41 class cCredits : public iUpdateable {
42 public:
43  cCredits(cInit *apInit);
44  ~cCredits();
45 
46  void Reset();
47 
48  void OnPostSceneDraw();
49 
50  void OnDraw();
51 
52  void Update(float afTimeStep);
53 
54  void OnMouseDown(eMButton aButton);
55  void OnButtonDown();
56 
57  void SetActive(bool abX);
58  bool IsActive() { return mbActive; }
59 
60  void OnExit();
61 
62 private:
63  void LoadConfig();
64 
65  cInit *mpInit;
66  cGraphicsDrawer *mpDrawer;
67 
68  FontData *mpFont;
69 
70  tWStringVec mvTextRows;
71  float mfYPos;
72 
73  bool mbActive;
74 };
75 
76 //---------------------------------------------
77 
78 #endif // GAME_CREDITS_H
Definition: AI.h:36
Definition: font_data.h:67
Definition: GraphicsDrawer.h:77
Definition: Updateable.h:35
Definition: Credits.h:41
Definition: Init.h:70