diff options
Diffstat (limited to 'ap_state.h')
-rw-r--r-- | ap_state.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ap_state.h b/ap_state.h index ce7bafc..ce73528 100644 --- a/ap_state.h +++ b/ap_state.h | |||
@@ -26,7 +26,7 @@ class APState { | |||
26 | 26 | ||
27 | bool HasColorItem(LingoColor color) const; | 27 | bool HasColorItem(LingoColor color) const; |
28 | 28 | ||
29 | bool HasItem(const std::string& item) const; | 29 | bool HasItem(const std::string& item, int quantity = 1) const; |
30 | 30 | ||
31 | DoorShuffleMode GetDoorShuffleMode() const { return door_shuffle_mode_; } | 31 | DoorShuffleMode GetDoorShuffleMode() const { return door_shuffle_mode_; } |
32 | 32 | ||
@@ -53,12 +53,13 @@ class APState { | |||
53 | bool connected_ = false; | 53 | bool connected_ = false; |
54 | bool has_connection_result_ = false; | 54 | bool has_connection_result_ = false; |
55 | 55 | ||
56 | std::set<int64_t> inventory_; | 56 | std::map<int64_t, int> inventory_; |
57 | std::set<int64_t> checked_locations_; | 57 | std::set<int64_t> checked_locations_; |
58 | 58 | ||
59 | std::map<std::tuple<int, int>, int64_t> ap_id_by_location_id_; | 59 | std::map<std::tuple<int, int>, int64_t> ap_id_by_location_id_; |
60 | std::map<std::string, int64_t> ap_id_by_item_name_; | 60 | std::map<std::string, int64_t> ap_id_by_item_name_; |
61 | std::map<LingoColor, int64_t> ap_id_by_color_; | 61 | std::map<LingoColor, int64_t> ap_id_by_color_; |
62 | std::map<int64_t, std::string> progressive_item_by_ap_id_; | ||
62 | 63 | ||
63 | DoorShuffleMode door_shuffle_mode_ = kNO_DOORS; | 64 | DoorShuffleMode door_shuffle_mode_ = kNO_DOORS; |
64 | bool color_shuffle_ = false; | 65 | bool color_shuffle_ = false; |