From 09d67fbad9df92caf2251d36b4abd7979fd27126 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Tue, 2 May 2023 17:26:46 -0400 Subject: Map + popups reflect checked locations --- ap_state.h | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'ap_state.h') 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 @@ #include #include #include +#include #include "game_data.h" #include "tracker_frame.h" @@ -20,20 +21,24 @@ class APState { void Connect(std::string server, std::string player, std::string password); + bool HasCheckedGameLocation(int area_id, int section_id) const; + private: + void RefreshTracker(); + TrackerFrame* tracker_frame_; std::unique_ptr apclient_; bool client_active_ = false; std::mutex client_mutex_; - std::set inventory_; - std::set checked_locations_; + std::set inventory_; + std::set checked_locations_; - std::map ap_id_by_location_id_; - std::map ap_id_by_door_id_; - std::map ap_id_by_door_group_id_; - std::map ap_id_by_color_; + std::map, int64_t> ap_id_by_location_id_; + std::map ap_id_by_door_id_; + std::map ap_id_by_door_group_id_; + std::map ap_id_by_color_; }; APState& GetAPState(); -- cgit 1.4.1