about summary refs log tree commit diff stats
path: root/ap_state.h
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-05-03 17:25:41 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-05-03 17:25:41 -0400
commit08ffb400114029569b4043b4f4c5a3f2af9b37b8 (patch)
treebe79e53b617230007fe64c0fd1a900ef8c8434d2 /ap_state.h
parentf960478d05222fc54f466fc863983fcc3a5eaaeb (diff)
downloadlingo-ap-tracker-08ffb400114029569b4043b4f4c5a3f2af9b37b8.tar.gz
lingo-ap-tracker-08ffb400114029569b4043b4f4c5a3f2af9b37b8.tar.bz2
lingo-ap-tracker-08ffb400114029569b4043b4f4c5a3f2af9b37b8.zip
Added progressive items
Diffstat (limited to 'ap_state.h')
-rw-r--r--ap_state.h5
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;