From 70f1c629a6e08e0f9c58707f0470e08c6ffeca34 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Tue, 2 May 2023 20:14:43 -0400 Subject: Added reachability checking (only no doors rn) --- ap_state.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'ap_state.h') diff --git a/ap_state.h b/ap_state.h index b5a94e3..d818b40 100644 --- a/ap_state.h +++ b/ap_state.h @@ -11,6 +11,8 @@ #include "game_data.h" #include "tracker_frame.h" +enum class DoorShuffleMode { kNone, kSimple, kComplex }; + class APState { public: APState(); @@ -23,9 +25,17 @@ class APState { bool HasCheckedGameLocation(int area_id, int section_id) const; + bool HasColorItem(LingoColor color) const; + + DoorShuffleMode GetDoorShuffleMode() const { return door_shuffle_mode_; } + + bool IsColorShuffle() const { return color_shuffle_; } + private: void RefreshTracker(); + int64_t GetItemId(const std::string& item_name); + TrackerFrame* tracker_frame_; std::unique_ptr apclient_; @@ -39,6 +49,9 @@ class APState { std::map ap_id_by_door_id_; std::map ap_id_by_door_group_id_; std::map ap_id_by_color_; + + DoorShuffleMode door_shuffle_mode_ = DoorShuffleMode::kNone; + bool color_shuffle_ = false; }; APState& GetAPState(); -- cgit 1.4.1