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
31
namespace
Sherlock
{
32
33
class
SherlockEngine;
34
35
namespace
Tattoo {
36
37
struct
MapEntry
:
Common::Point
{
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
46
class
TattooMap
:
public
Map
{
47
private
:
48
Common::Array<MapEntry>
_data;
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);
78
public
:
79
TattooMap
(
SherlockEngine
*vm);
80
~
TattooMap
()
override
{}
81
85
int
show()
override
;
86
};
87
88
}
// End of namespace Tattoo
89
90
}
// End of namespace Sherlock
91
92
#endif
Common::String
Definition:
str.h:59
Sherlock::Tattoo::MapEntry
Definition:
tattoo_map.h:37
Common::Array
Definition:
array.h:52
Sherlock
Definition:
animation.h:29
Common::Rect
Definition:
rect.h:144
Sherlock::Tattoo::WidgetMapTooltip
Definition:
widget_tooltip.h:79
Sherlock::Map
Definition:
map.h:32
Sherlock::Tattoo::TattooMap
Definition:
tattoo_map.h:46
Sherlock::SherlockEngine
Definition:
sherlock.h:76
Common::Point
Definition:
rect.h:45
Sherlock::ImageFile
Definition:
image_file.h:78
engines
sherlock
tattoo
tattoo_map.h
Generated on Sat Aug 31 2024 09:16:47 for ScummVM API documentation by
1.8.13