about summary refs log tree commit diff stats
path: root/src/subway_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/subway_map.h')
-rw-r--r--src/subway_map.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/subway_map.h b/src/subway_map.h index feee8ff..b04c2fd 100644 --- a/src/subway_map.h +++ b/src/subway_map.h
@@ -15,9 +15,12 @@
15 15
16#include <quadtree/Quadtree.h> 16#include <quadtree/Quadtree.h>
17 17
18#include "ap_state.h"
18#include "game_data.h" 19#include "game_data.h"
19#include "network_set.h" 20#include "network_set.h"
20 21
22class ReportPopup;
23
21class SubwayMap : public wxPanel { 24class SubwayMap : public wxPanel {
22 public: 25 public:
23 SubwayMap(wxWindow *parent); 26 SubwayMap(wxWindow *parent);
@@ -45,15 +48,16 @@ class SubwayMap : public wxPanel {
45 wxPoint RenderPosToMapPos(wxPoint pos) const; 48 wxPoint RenderPosToMapPos(wxPoint pos) const;
46 49
47 void EvaluateScroll(wxPoint pos); 50 void EvaluateScroll(wxPoint pos);
51 void EvaluateHover();
48 52
49 void SetZoomPos(wxPoint pos); 53 void SetZoomPos(wxPoint pos);
50 void SetScrollSpeed(int scroll_x, int scroll_y); 54 void SetScrollSpeed(int scroll_x, int scroll_y);
51 void SetZoom(double zoom, wxPoint static_point); 55 void SetZoom(double zoom, wxPoint static_point);
52 56
57 std::optional<int> GetRealSubwayDoor(const SubwayItem subway_item);
58
53 wxImage map_image_; 59 wxImage map_image_;
54 wxImage owl_image_; 60 wxImage owl_image_;
55 wxBitmap unchecked_eye_;
56 wxBitmap checked_eye_;
57 61
58 wxBitmap rendered_; 62 wxBitmap rendered_;
59 int render_x_ = 0; 63 int render_x_ = 0;
@@ -85,8 +89,13 @@ class SubwayMap : public wxPanel {
85 std::optional<int> actual_hover_; 89 std::optional<int> actual_hover_;
86 bool sticky_hover_ = false; 90 bool sticky_hover_ = false;
87 91
92 ReportPopup *report_popup_;
93
88 NetworkSet networks_; 94 NetworkSet networks_;
89 std::set<std::string> checked_paintings_; 95 std::set<std::string> checked_paintings_;
96
97 // Cached from APState.
98 std::map<int, SunwarpMapping> sunwarp_mapping_;
90}; 99};
91 100
92#endif /* end of include guard: SUBWAY_MAP_H_BD2D843E */ 101#endif /* end of include guard: SUBWAY_MAP_H_BD2D843E */