about summary refs log tree commit diff stats
path: root/src/subway_map.h
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-05-14 11:41:50 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-05-14 11:41:50 -0400
commit7f4b6b4f0cb276a7e0868c7e97d862b1feb468d3 (patch)
tree101ca3148d5470db821d1572c8f795dd5ad61759 /src/subway_map.h
parent34133b1e330a7d3c2a3e6a6bcd36deb5f95e8f13 (diff)
downloadlingo-ap-tracker-7f4b6b4f0cb276a7e0868c7e97d862b1feb468d3.tar.gz
lingo-ap-tracker-7f4b6b4f0cb276a7e0868c7e97d862b1feb468d3.tar.bz2
lingo-ap-tracker-7f4b6b4f0cb276a7e0868c7e97d862b1feb468d3.zip
Hovered connections on subway map!
Diffstat (limited to 'src/subway_map.h')
-rw-r--r--src/subway_map.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/subway_map.h b/src/subway_map.h index 6cb5c63..1637125 100644 --- a/src/subway_map.h +++ b/src/subway_map.h
@@ -9,15 +9,24 @@
9 9
10#include <memory> 10#include <memory>
11#include <optional> 11#include <optional>
12#include <set>
13#include <string>
12#include <vector> 14#include <vector>
13 15
14#include <quadtree/Quadtree.h> 16#include <quadtree/Quadtree.h>
15 17
18#include "game_data.h"
19#include "network_set.h"
20
16class SubwayMap : public wxPanel { 21class SubwayMap : public wxPanel {
17 public: 22 public:
18 SubwayMap(wxWindow *parent); 23 SubwayMap(wxWindow *parent);
19 24
25 void OnConnect();
20 void UpdateIndicators(); 26 void UpdateIndicators();
27 void UpdatePainting(std::string from_painting_id,
28 std::optional<std::string> to_painting_id);
29 void UpdateSunwarp(SubwaySunwarp from_sunwarp, SubwaySunwarp to_sunwarp);
21 30
22 private: 31 private:
23 void OnPaint(wxPaintEvent &event); 32 void OnPaint(wxPaintEvent &event);
@@ -40,6 +49,9 @@ class SubwayMap : public wxPanel {
40 49
41 std::unique_ptr<quadtree::Quadtree<int, GetItemBox>> tree_; 50 std::unique_ptr<quadtree::Quadtree<int, GetItemBox>> tree_;
42 std::optional<int> hovered_item_; 51 std::optional<int> hovered_item_;
52
53 NetworkSet networks_;
54 std::set<std::string> checked_paintings_;
43}; 55};
44 56
45#endif /* end of include guard: SUBWAY_MAP_H_BD2D843E */ 57#endif /* end of include guard: SUBWAY_MAP_H_BD2D843E */