ScummVM API documentation
minimap.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
#include "ultima/ultima8/misc/common_types.h"
23
#include "graphics/surface.h"
24
25
#ifndef ULTIMA8_WORLD_MINIMAP_H
26
#define ULTIMA8_WORLD_MINIMAP_H
27
28
namespace
Ultima
{
29
namespace
Ultima8 {
30
31
class
CurrentMap;
32
class
Item;
33
34
#define MINMAPGUMP_SCALE 8
35
36
class
MiniMap
{
37
private
:
38
uint32 _mapNum;
39
Graphics::Surface
_surface;
40
41
uint32 sampleAtPoint(
const
CurrentMap
&map,
int
x,
int
y);
42
uint32 sampleAtPoint(
const
Item
&item,
int
x,
int
y);
43
44
const
Common::Rect
getCropBounds()
const
;
45
public
:
46
MiniMap
(uint32 mapNum);
47
~
MiniMap
();
48
49
void
update(
const
CurrentMap
&map);
50
Common::Point
getItemLocation(
const
Item
&item,
unsigned
int
chunkSize);
51
52
uint32 getMapNum()
const
{
return
_mapNum; }
53
Graphics::Surface
*getSurface() {
return
&_surface; }
54
55
bool
load(
Common::ReadStream
*rs, uint32 version);
56
void
save(
Common::WriteStream
*ws)
const
;
57
};
58
59
}
// End of namespace Ultima8
60
}
// End of namespace Ultima
61
62
#endif
Graphics::Surface
Definition:
surface.h:67
Ultima::Ultima8::MiniMap
Definition:
minimap.h:36
Common::WriteStream
Definition:
stream.h:77
Ultima::Ultima8::Item
Definition:
item.h:42
Common::Rect
Definition:
rect.h:144
Ultima
Definition:
detection.h:27
Common::Point
Definition:
rect.h:45
Common::ReadStream
Definition:
stream.h:385
Ultima::Ultima8::CurrentMap
Definition:
current_map.h:44
engines
ultima
ultima8
world
minimap.h
Generated on Fri Nov 22 2024 09:27:43 for ScummVM API documentation by
1.8.13