ScummVM API documentation
viewport_map.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_SHARED_GFX_VIEWPORT_MAP_H
23 #define ULTIMA_SHARED_GFX_VIEWPORT_MAP_H
24 
25 #include "ultima/shared/gfx/visual_item.h"
26 #include "ultima/shared/gfx/sprites.h"
27 
28 namespace Ultima {
29 namespace Shared {
30 
31 class ViewportMap : public Gfx::VisualItem {
32  DECLARE_MESSAGE_MAP;
33 protected:
34  Gfx::Sprites *_sprites;
35 public:
36  CLASSDEF;
37 
41  ViewportMap(TreeItem *parent) : Gfx::VisualItem("ViewportMap", Rect(8, 8, 312, 152), parent), _sprites(nullptr) {}
42 
46  ~ViewportMap() override {}
47 
51  void draw() override;
52 };
53 
54 } // End of namespace Shared
55 } // End of namespace Ultima
56 
57 #endif
Definition: tree_item.h:50
Definition: rect.h:144
~ViewportMap() override
Definition: viewport_map.h:46
Definition: visual_item.h:39
ViewportMap(TreeItem *parent)
Definition: viewport_map.h:41
Definition: detection.h:27
Definition: sprites.h:94
Definition: viewport_map.h:31