ScummVM API documentation
dungeon_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
23#ifndef ULTIMA2_VIEWS_DUNGEON_MAP_H
24#define ULTIMA2_VIEWS_DUNGEON_MAP_H
25
26#include "ultima/ultima2/views/map.h"
27
28namespace Ultima {
29namespace Ultima2 {
30namespace Views {
31
36class DungeonMap : public Map {
37private:
38 byte _monsterSprites[2048] = {};
39 bool _showMinimap = false;
40 bool _inverted = false;
41
45 void drawMinimap(Graphics::Views::GfxSurface &s);
46
50 int drawCorridor(Graphics::Views::GfxSurface &s);
51
55 void drawMonster(Graphics::Views::GfxSurface &s, const byte *monsters, int depth);
56
57protected:
59 return nullptr;
60 }
61
62public:
63 DungeonMap();
64 ~DungeonMap() override {}
65
66 bool msgFocus(const FocusMessage &msg) override;
67 bool msgUnfocus(const UnfocusMessage &msg) override;
68 bool msgAttackTile(const Shared::AttackTileMessage &msg) override;
69 bool msgKeypress(const KeypressMessage &msg) override;
70 bool msgGame(const GameMessage &msg) override;
71 void draw() override;
72 bool tick() override;
73};
74
75} // namespace Views
76} // namespace Ultima2
77} // namespace Ultima
78
79#endif
Definition: gfx_surface.h:34
Definition: dungeon_map.h:36
Graphics::Surface * tileGraphics() override
Definition: dungeon_map.h:58
Definition: map.h:37
Definition: surface.h:67
Definition: messages.h:35