diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-05-02 17:26:46 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-05-02 17:26:46 -0400 |
commit | 09d67fbad9df92caf2251d36b4abd7979fd27126 (patch) | |
tree | 287be3da3588f1fb991ffd3212fdfd53a703d6ab /ap_state.h | |
parent | 116ba412079ddf647d19a54d09eb61e67a2f9aac (diff) | |
download | lingo-ap-tracker-09d67fbad9df92caf2251d36b4abd7979fd27126.tar.gz lingo-ap-tracker-09d67fbad9df92caf2251d36b4abd7979fd27126.tar.bz2 lingo-ap-tracker-09d67fbad9df92caf2251d36b4abd7979fd27126.zip |
Map + popups reflect checked locations
Diffstat (limited to 'ap_state.h')
-rw-r--r-- | ap_state.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/ap_state.h b/ap_state.h index 5f9e952..b5a94e3 100644 --- a/ap_state.h +++ b/ap_state.h | |||
@@ -6,6 +6,7 @@ | |||
6 | #include <mutex> | 6 | #include <mutex> |
7 | #include <set> | 7 | #include <set> |
8 | #include <string> | 8 | #include <string> |
9 | #include <tuple> | ||
9 | 10 | ||
10 | #include "game_data.h" | 11 | #include "game_data.h" |
11 | #include "tracker_frame.h" | 12 | #include "tracker_frame.h" |
@@ -20,20 +21,24 @@ class APState { | |||
20 | 21 | ||
21 | void Connect(std::string server, std::string player, std::string password); | 22 | void Connect(std::string server, std::string player, std::string password); |
22 | 23 | ||
24 | bool HasCheckedGameLocation(int area_id, int section_id) const; | ||
25 | |||
23 | private: | 26 | private: |
27 | void RefreshTracker(); | ||
28 | |||
24 | TrackerFrame* tracker_frame_; | 29 | TrackerFrame* tracker_frame_; |
25 | 30 | ||
26 | std::unique_ptr<APClient> apclient_; | 31 | std::unique_ptr<APClient> apclient_; |
27 | bool client_active_ = false; | 32 | bool client_active_ = false; |
28 | std::mutex client_mutex_; | 33 | std::mutex client_mutex_; |
29 | 34 | ||
30 | std::set<int> inventory_; | 35 | std::set<int64_t> inventory_; |
31 | std::set<int> checked_locations_; | 36 | std::set<int64_t> checked_locations_; |
32 | 37 | ||
33 | std::map<int, int> ap_id_by_location_id_; | 38 | std::map<std::tuple<int, int>, int64_t> ap_id_by_location_id_; |
34 | std::map<int, int> ap_id_by_door_id_; | 39 | std::map<int, int64_t> ap_id_by_door_id_; |
35 | std::map<int, int> ap_id_by_door_group_id_; | 40 | std::map<int, int64_t> ap_id_by_door_group_id_; |
36 | std::map<LingoColor, int> ap_id_by_color_; | 41 | std::map<LingoColor, int64_t> ap_id_by_color_; |
37 | }; | 42 | }; |
38 | 43 | ||
39 | APState& GetAPState(); | 44 | APState& GetAPState(); |