ScummVM API documentation
game_view.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 ULTIMA_ULTIMA1_U6GFX_GAME_VIEW_H
23#define ULTIMA_ULTIMA1_U6GFX_GAME_VIEW_H
24
25#include "ultima/shared/gfx/visual_container.h"
26
27namespace Ultima {
28namespace Shared {
29class Info;
30class ViewportDungeon;
31} // End of namespace Shared
32} // End of namespace Ultima
33
34namespace Ultima {
35namespace Shared {
36namespace Actions {
37class Action;
38} // End of namespace Actions
39} // End of namespace Shared
40} // End of namespace Ultima
41
42namespace Ultima {
43namespace Ultima1 {
44namespace U1Gfx {
45class Status;
46} // End of namespace U1Gfx
47} // End of namespace Ultima1
48} // End of namespace Ultima
49
50namespace Ultima {
51namespace Ultima1 {
52namespace U6Gfx {
53
54using Shared::CKeypressMsg;
55
64 class Scroll : private Graphics::ManagedSurface {
65 public:
69 Scroll();
70
74 void draw(Graphics::ManagedSurface &dest, const Common::Rect &r);
75 };
76
77 DECLARE_MESSAGE_MAP;
78 bool KeypressMsg(CKeypressMsg *msg);
79private:
80 Shared::Info *_info;
81 U1Gfx::Status *_status;
82// Shared::ViewportDungeon *_viewportDungeon;
83 Shared::Actions::Action *_actions[4];
84 Graphics::ManagedSurface _background;
85private:
90 void loadBackground();
91public:
92 CLASSDEF;
93 GameView(Shared::TreeItem *parent = nullptr);
94 ~GameView() override;
95
99 void draw() override;
100};
101
102} // End of namespace U6Gfx
103} // End of namespace Shared
104} // End of namespace Ultima
105
106#endif
Definition: managed_surface.h:51
Definition: action.h:41
Definition: messages.h:265
Definition: visual_container.h:32
Definition: info.h:41
Definition: tree_item.h:50
Definition: status.h:36
Definition: game_view.h:60
Definition: rect.h:536