ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
minimap_gump.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 ULTIMA8_GUMPS_MINIMAPGUMP_H
23 #define ULTIMA8_GUMPS_MINIMAPGUMP_H
24 
25 #include "ultima/ultima8/gumps/resizable_gump.h"
26 #include "ultima/ultima8/misc/classtype.h"
27 
28 namespace Common {
29 class Path;
30 }
31 
32 namespace Ultima {
33 namespace Ultima8 {
34 
35 class MiniMap;
36 
37 class MiniMapGump : public ResizableGump {
38 private:
40  int32 _ax, _ay;
41 
42 public:
43  ENABLE_RUNTIME_CLASSTYPE()
44 
45  MiniMapGump();
46  MiniMapGump(int x, int y);
47  ~MiniMapGump() override;
48 
49  void run() override;
50 
51  void generate();
52  void clear();
53  bool dump(const Common::Path &filename) const;
54 
55  void PaintThis(RenderSurface *surf, int32 lerp_factor, bool scaled) override;
56  uint16 TraceObjId(int32 mx, int32 my) override;
57 
58  Gump *onMouseDown(int button, int32 mx, int32 my) override;
59  void onMouseDouble(int button, int32 mx, int32 my) override;
60 
61  bool loadData(Common::ReadStream *rs, uint32 version);
62  void saveData(Common::WriteStream *ws) override;
63 };
64 
65 } // End of namespace Ultima8
66 } // End of namespace Ultima
67 
68 #endif
Definition: stream.h:77
Definition: path.h:52
Definition: render_surface.h:40
Definition: gump.h:47
Definition: detection.h:27
Path
Definition: game.h:75
Definition: hashmap.h:85
Definition: resizable_gump.h:34
Definition: algorithm.h:29
Definition: minimap_gump.h:37
Definition: stream.h:385