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
30namespace Buried {
31
32class BuriedEngine;
33struct GlobalFlags;
34
35class FrameWindow : public Window {
36public:
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 onActionStart(const Common::CustomEventType &action, uint flags);
55 void onActionEnd(const Common::CustomEventType &action, uint flags);
56 void onKeyUp(const Common::KeyState &key, uint flags);
57 void onTimer(uint timer);
58 void onKillFocus(Window *newWindow);
59 void onSetFocus(Window *oldWindow);
60
61 int getTransitionSpeed() const { return _transitionSpeed; }
62 void setTransitionSpeed(int newSpeed);
63 bool isFrameCyclingDefault() const { return _cycleDefault; }
64 bool isFrameCachingAllowed() const { return _cacheFrames; }
65
66 bool _reviewerMode;
67 bool _controlDown;
68
69 bool isGameInProgress() const { return _gameInProgress; }
70 Window *getMainChildWindow() const { return _mainChildWindow; }
71 void loadFromState(const Location &location, GlobalFlags &flags, Common::Array<int> inventoryItems);
72
73private:
74 Window *_mainChildWindow;
75
76 bool _cacheFrames;
77 bool _cycleDefault;
78 int _transitionSpeed;
79 bool _gameInProgress;
80 bool _atMainMenu;
81};
82
83} // End of namespace Buried
84
85#endif
Definition: buried.h:96
Definition: frame_window.h:35
Definition: window.h:38
Definition: path.h:52
uint32 CustomEventType
Definition: events.h:212
Definition: global_flags.h:35
Definition: navdata.h:32
Definition: keyboard.h:294