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 
27 namespace Ultima {
28 namespace Shared {
29 class Info;
30 class ViewportDungeon;
31 } // End of namespace Shared
32 } // End of namespace Ultima
33 
34 namespace Ultima {
35 namespace Shared {
36 namespace Actions {
37 class Action;
38 } // End of namespace Actions
39 } // End of namespace Shared
40 } // End of namespace Ultima
41 
42 namespace Ultima {
43 namespace Ultima1 {
44 namespace U1Gfx {
45 class Status;
46 } // End of namespace U1Gfx
47 } // End of namespace Ultima1
48 } // End of namespace Ultima
49 
50 namespace Ultima {
51 namespace Ultima1 {
52 namespace U6Gfx {
53 
54 using 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);
79 private:
80  Shared::Info *_info;
81  U1Gfx::Status *_status;
82 // Shared::ViewportDungeon *_viewportDungeon;
83  Shared::Actions::Action *_actions[4];
84  Graphics::ManagedSurface _background;
85 private:
90  void loadBackground();
91 public:
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: messages.h:265
Definition: tree_item.h:50
Definition: rect.h:144
Definition: info.h:41
Definition: detection.h:27
Definition: status.h:36
Definition: visual_container.h:32
Definition: game_view.h:60
Definition: action.h:41