ScummVM API documentation
dungeon_widget.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_MAPS_DUNGEON_WIDGET_H
23 #define ULTIMA_SHARED_MAPS_DUNGEON_WIDGET_H
24 
25 #include "ultima/shared/maps/map_widget.h"
26 #include "ultima/shared/maps/map.h"
27 #include "ultima/shared/gfx/dungeon_surface.h"
28 #include "common/serializer.h"
29 #include "common/str.h"
30 
31 namespace Ultima {
32 namespace Shared {
33 
34 class Game;
35 class Map;
36 
37 namespace Maps {
38 
42 class DungeonWidget : public MapWidget {
43 public:
47  DungeonWidget(Game *game, Maps::MapBase *map) : MapWidget(game, map) {}
48  DungeonWidget(Game *game, Maps::MapBase *map, const Point &pt, Direction dir = DIR_NONE) : MapWidget(game, map, pt, dir) {}
49  DungeonWidget(Game *game, Maps::MapBase *map, const Common::String &name, const Point &pt, Direction dir = DIR_NONE) :
50  MapWidget(game, map, name, pt, dir) {}
51 
55  ~DungeonWidget() override {}
56 
60  virtual void draw(DungeonSurface &s, uint distance) = 0;
61 };
62 
63 } // End of namespace Maps
64 } // End of namespace Shared
65 } // End of namespace Ultima
66 
67 #endif
Definition: dungeon_widget.h:42
DungeonWidget(Game *game, Maps::MapBase *map)
Definition: dungeon_widget.h:47
Definition: str.h:59
Definition: game.h:42
Definition: dungeon_surface.h:37
Definition: detection.h:27
MapWidget(Game *game, MapBase *map)
Definition: map_widget.h:70
Definition: rect.h:45
Definition: map_widget.h:50
Definition: map_base.h:47
virtual void draw(DungeonSurface &s, uint distance)=0
~DungeonWidget() override
Definition: dungeon_widget.h:55