ScummVM API documentation
frame_window.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_FRAME_WINDOW_H
26 #define BURIED_FRAME_WINDOW_H
27 
28 #include "buried/window.h"
29 
30 namespace Buried {
31 
32 class BuriedEngine;
33 struct GlobalFlags;
34 
35 class FrameWindow : public Window {
36 public:
38  ~FrameWindow();
39 
40  bool showTitleSequence();
41  bool showMainMenu();
42  bool returnToMainMenu();
43  bool playMovie(const Common::Path &background, const Common::Path &movie, int movieLeft, int movieTop);
44  bool showClosingScreen();
45  bool showFeaturesScreen();
46  bool startNewGame(bool walkthrough = false, bool introMovie = false);
47  bool showDeathScene(int deathSceneIndex, GlobalFlags &globalFlags, Common::Array<int> itemArray);
48  bool showCompletionScene(GlobalFlags &globalFlags);
49  bool showCredits();
50  bool showOverview();
51  bool setTimerPause(bool pause);
52 
53  bool onEraseBackground();
54  void onKeyDown(const Common::KeyState &key, uint flags);
55  void onKeyUp(const Common::KeyState &key, uint flags);
56  void onTimer(uint timer);
57  void onKillFocus(Window *newWindow);
58  void onSetFocus(Window *oldWindow);
59 
60  int getTransitionSpeed() const { return _transitionSpeed; }
61  void setTransitionSpeed(int newSpeed);
62  bool isFrameCyclingDefault() const { return _cycleDefault; }
63  bool isFrameCachingAllowed() const { return _cacheFrames; }
64 
65  bool _reviewerMode;
66  bool _controlDown;
67 
68  bool isGameInProgress() const { return _gameInProgress; }
69  Window *getMainChildWindow() const { return _mainChildWindow; }
70  void loadFromState(const Location &location, GlobalFlags &flags, Common::Array<int> inventoryItems);
71 
72 private:
73  Window *_mainChildWindow;
74 
75  bool _cacheFrames;
76  bool _cycleDefault;
77  int _transitionSpeed;
78  bool _gameInProgress;
79  bool _atMainMenu;
80 };
81 
82 } // End of namespace Buried
83 
84 #endif
Definition: window.h:37
Definition: global_flags.h:35
Definition: path.h:52
Definition: buried.h:67
Definition: agent_evaluation.h:31
Definition: navdata.h:32
Definition: keyboard.h:294
Definition: frame_window.h:35