ScummVM API documentation
tattoo_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 SHERLOCK_TATTOO_MAP_H
23#define SHERLOCK_TATTOO_MAP_H
24
25#include "common/scummsys.h"
26#include "sherlock/map.h"
27#include "sherlock/resources.h"
28#include "sherlock/surface.h"
29#include "sherlock/tattoo/widget_tooltip.h"
30
31namespace Sherlock {
32
33class SherlockEngine;
34
35namespace Tattoo {
36
38 int _iconNum;
39 Common::String _description;
40
41 MapEntry() : Common::Point(), _iconNum(-1) {}
42 MapEntry(int posX, int posY, int iconNum) : Common::Point(posX, posY), _iconNum(iconNum) {}
43 void clear();
44};
45
46class TattooMap : public Map {
47private:
49 ImageFile *_iconImages;
50 int _bgFound, _oldBgFound;
51 WidgetMapTooltip _mapTooltip;
52 Common::Point _targetScroll;
53
57 void loadData();
58
62 void drawMapIcons();
63
67 void checkMapNames(bool slamIt);
68
72 void restoreArea(const Common::Rect &bounds);
73
77 void showCloseUp(int closeUpNum);
78public:
80 ~TattooMap() override {}
81
85 int show() override;
86};
87
88} // End of namespace Tattoo
89
90} // End of namespace Sherlock
91
92#endif
Definition: array.h:52
Definition: str.h:59
Definition: image_file.h:78
Definition: map.h:32
Definition: sherlock.h:206
Definition: tattoo_map.h:46
Definition: widget_tooltip.h:81
Definition: rect.h:144
Definition: rect.h:536
Definition: tattoo_map.h:37