ScummVM API documentation
death.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  * Additional copyright for this file:
8  * Copyright (C) 1995 Presto Studios, Inc.
9  *
10  * This program is free software: you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation, either version 3 of the License, or
13  * (at your option) any later version.
14 
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19 
20  * You should have received a copy of the GNU General Public License
21  * along with this program. If not, see <http://www.gnu.org/licenses/>.
22  *
23  */
24 
25 #ifndef BURIED_DEATH_H
26 #define BURIED_DEATH_H
27 
28 #include "buried/global_flags.h"
29 #include "buried/window.h"
30 
31 namespace Graphics {
32 class Font;
33 struct Surface;
34 }
35 
36 namespace Buried {
37 
38 class AVIFrames;
39 class AgentEvaluation;
40 
41 class DeathWindow : public Window {
42 public:
43  DeathWindow(BuriedEngine *vm, Window *parent, int deathSceneIndex, GlobalFlags globalFlags, Common::Array<int> itemArray);
44  ~DeathWindow();
45 
46  void onPaint();
47  bool onEraseBackground();
48  void onTimer(uint timer);
49  void onLButtonUp(const Common::Point &point, uint flags);
50  void onLButtonDown(const Common::Point &point, uint flags);
51  void onMouseMove(const Common::Point &point, uint flags);
52 
53 private:
54  Common::Rect _quit;
55  Common::Rect _restoreGame;
56  Common::Rect _mainMenu;
57  int _curButton;
58  uint _timer;
59  AVIFrames *_deathSceneFrames;
60  int _deathSceneIndex;
61  GlobalFlags _globalFlags;
62  Common::Array<int> _itemArray;
63  int32 _deathFrameIndex;
64  bool _lightOn;
65  Graphics::Font *_textFontA;
66  Graphics::Font *_textFontB;
67  int _fontHeightA, _fontHeightB;
68  bool _walkthroughMode;
69  AgentEvaluation *_agentEvaluation;
70 };
71 
72 } // End of namespace Buried
73 
74 #endif
Definition: window.h:37
Definition: font.h:82
Definition: avi_frames.h:42
Definition: global_flags.h:35
Definition: rect.h:144
Definition: buried.h:67
Definition: agent_evaluation.h:31
Definition: death.h:41
Definition: formatinfo.h:28
Definition: rect.h:45
Definition: agent_evaluation.h:35