#ifndef AP_STATE_H_664A4180 #define AP_STATE_H_664A4180 #include #include #include #include #include #include #include "game_data.h" #include "tracker_frame.h" enum DoorShuffleMode { kNO_DOORS = 0, kSIMPLE_DOORS = 1, kCOMPLEX_DOORS = 2 }; class APState { public: APState(); void SetTrackerFrame(TrackerFrame* tracker_frame) { tracker_frame_ = tracker_frame; } void Connect(std::string server, std::string player, std::string password); bool HasCheckedGameLocation(int area_id, int section_id) const; bool HasColorItem(LingoColor color) const; bool HasItem(const std::string& item) 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_; bool client_active_ = false; std::mutex client_mutex_; std::set inventory_; std::set checked_locations_; std::map, int64_t> ap_id_by_location_id_; std::map ap_id_by_item_name_; std::map ap_id_by_color_; DoorShuffleMode door_shuffle_mode_ = kNO_DOORS; bool color_shuffle_ = false; }; APState& GetAPState(); #endif /* end of include guard: AP_STATE_H_664A4180 */ /areas.yaml?h=v0.12.0'>log tree commit diff stats
blob: cbcf23ab8be8a1bd9b9bef5045a27cf7bbb31fe8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
---
  Starting Room:
    map: [1589, 1192]
  Hidden Room:
    map: [1725, 1236]
  The Seeker:
    map: [1686, 1361]
  Second Room:
    map: [1589, 1029]
  Hub Room:
    map: [1589, 924]
  Dead End Area:
    map: [1785, 1125]
  Pilgrim Room:
    map: [1493, 1564]
  Pilgrim Antechamber:
    fold_into: Pilgrim Room
  Crossroads:
    map: [1294, 720]
  Lost Area:
    fold_into: Crossroads
  Amen Name Area:
    fold_into: Crossroads
  Suits Area:
    map: [1566, 322]
  The Tenacious:
    map: [1589, 780]
  Symmetry Room:
    map: [1763, 871]
  Near Far Area:
    fold_into: Symmetry Room
  Warts Straw Area:
    fold_into: Symmetry Room
  Leaf Feel Area:
    fold_into: Symmetry Room
  Outside The Agreeable:
    map: [1766, 700]
  Compass Room:
    fold_into: Outside The Agreeable
  Hallway Room:
    map: [573, 1631]
  Hallway Room (1):
    fold_into: Hallway Room
  Hallway Room (2):
    fold_into: Hallway Room
  Hallway Room (3):
    fold_into: Hallway Room
  Hallway Room (4):
    fold_into: Hallway Room
  Dread Hallway:
    fold_into: Outside The Agreeable
  The Agreeable:
    map: [1909, 699]
  Hedge Maze:
    map: [2102, 600]
  The Perceptive:
    map: [2251, 600]
  The Fearless:
    map: [1790, 2220]
  The Fearless (First Floor):
    fold_into: The Fearless
  The Fearless (Second Floor):
    fold_into: The Fearless
  The Observant:
    map: [2252, 193]
  The Incomparable:
    map: [2642, 872]
  Eight Room:
    fold_into: The Incomparable
  Eight Alcove:
    fold_into: The Incomparable
  Orange Tower First Floor:
    map: [1285, 928]
  Color Hunt:
    map: [1790, 2079]
  Color Barriers:
    fold_into: Color Hunt
  Orange Tower Third Floor:
    map: [1935, 1575]
  Orange Tower Fourth Floor:
    map: [1365, 394]
  Hot Crusts Area:
    fold_into: Orange Tower Fourth Floor
  Orange Tower Fifth Floor:
    map: [1252, 1259]
  Orange Tower Seventh Floor:
    map: [1587, 1900]
  Orange Tower Sixth Floor:
    map: [1587, 2000]
  Orange Tower Basement:
    map: [1587, 2100]
  Courtyard:
    map: [863, 387]
  First Second Third Fourth:
    fold_into: Courtyard
  Yellow Backside Area:
    fold_into: Courtyard
  The Colorful:
    map: [863, 200]
  The Colorful (Black):
    fold_into: The Colorful
  The Colorful (Blue):
    fold_into: The Colorful
  The Colorful (Brown):
    fold_into: The Colorful
  The Colorful (Gray):
    fold_into: The Colorful
  The Colorful (Green):
    fold_into: The Colorful
  The Colorful (Orange):
    fold_into: The Colorful
  The Colorful (Purple):
    fold_into: The Colorful
  The Colorful (Red):
    fold_into: The Colorful
  The Colorful (White):
    fold_into: The Colorful
  The Colorful (Yellow):
    fold_into: The Colorful
  Welcome Back Area:
    map: [1472, 1233]
  Owl Hallway:
    map: [2080, 886]
  Outside The Initiated:
    map: [2282, 1483]
  The Initiated:
    map: [2294, 1174]
  The Traveled:
    map: [1964, 994]
  Outside The Bold:
    map: [2325, 1927]
  The Bold:
    map: [2274, 2053]
  The Red:
    map: [2374, 2053]
  Outside The Undeterred:
    map: [657, 1315]
  The Undeterred:
    map: [618, 1456]
  Number Hunt:
    map: [1108, 1315]
  Directional Gallery:
    map: [943, 1169]
  Champion's Rest:
    map: [1845, 1883]
  The Bearer:
    map: [2155, 1764]
  Bearer Side Area:
    fold_into: The Bearer
  The Bearer (East):
    fold_into: The Bearer
  The Bearer (North):
    fold_into: The Bearer
  The Bearer (South):
    fold_into: The Bearer
  The Bearer (West):
    fold_into: The Bearer
  Cross Tower (East):
    fold_into: The Bearer
  Cross Tower (North):
    fold_into: The Bearer
  Cross Tower (South):
    fold_into: The Bearer
  Cross Tower (West):
    fold_into: The Bearer
  The Steady:
    map: [2121, 2182]
  The Steady (Amber):
    fold_into: The Steady
  The Steady (Amethyst):
    fold_into: The Steady
  The Steady (Blueberry):
    fold_into: The Steady
  The Steady (Carnation):
    fold_into: The Steady
  The Steady (Cherry):
    fold_into: The Steady
  The Steady (Emerald):
    fold_into: The Steady
  The Steady (Lemon):
    fold_into: The Steady
  The Steady (Lilac):
    fold_into: The Steady
  The Steady (Lime):
    fold_into: The Steady
  The Steady (Orange):
    fold_into: The Steady
  The Steady (Plum):
    fold_into: The Steady
  The Steady (Rose):
    fold_into: The Steady
  The Steady (Ruby):
    fold_into: The Steady
  The Steady (Sapphire):
    fold_into: The Steady
  The Steady (Sunflower):
    fold_into: The Steady
  The Steady (Topaz):
    fold_into: The Steady
  Knight Night Room:
    map: [1990, 1322]
  Knight Night (Final):
    fold_into: Knight Night Room
  Knight Night (Outer Ring):
    fold_into: Knight Night Room
  Knight Night (Right Lower Segment):
    fold_into: Knight Night Room
  Knight Night (Right Upper Segment):
    fold_into: Knight Night Room
  Knight Night Exit:
    fold_into: Knight Night Room
  The Artistic:
    map: [1151, 1793]
  The Artistic (Smiley):
    fold_into: The Artistic
  The Artistic (Apple):
    fold_into: The Artistic
  The Artistic (Hint Room):
    fold_into: The Artistic
  The Artistic (Lattice):
    fold_into: The Artistic
  The Artistic (Panda):
    fold_into: The Artistic
  The Discerning:
    map: [1098, 807]
  The Ecstatic:
    map: [972, 805]
  The Eyes They See:
    map: [955, 933]
  Far Window:
    fold_into: The Eyes They See
  Wondrous Lobby:
    fold_into: The Eyes They See
  Outside The Wondrous:
    map: [691, 524]
  The Wondrous:
    map: [648, 338]
  The Wondrous (Doorknob):
    fold_into: The Wondrous
  The Wondrous (Bookcase):
    fold_into: The Wondrous
  The Wondrous (Chandelier):
    fold_into: The Wondrous
  The Wondrous (Table):
    fold_into: The Wondrous
  The Wondrous (Window):
    fold_into: The Wondrous
  Arrow Garden:
    map: [555, 155]
  Elements Area:
    map: [908, 1632]
  The Wanderer:
    map: [1587, 1765]
  Outside The Wanderer:
    fold_into: The Wanderer
  Rhyme Room (Smiley):
    fold_into: Rhyme Room
  Rhyme Room (Cross):
    fold_into: Rhyme Room
  Rhyme Room:
    map: [1587, 1492]
  Rhyme Room (Target):
    fold_into: Rhyme Room
  Rhyme Room (Circle):
    fold_into: Rhyme Room
  Rhyme Room (Looped Square):
    fold_into: Rhyme Room
  Room Room:
    map: [2553, 2153]
  Cellar:
    fold_into: Room Room
  Outside The Wise:
    map: [1087, 1986]
  The Wise:
    map: [759, 1986]
  Outside The Scientific:
    map: [510, 2271]
  The Scientific:
    map: [1368, 2103]
  Art Gallery:
    map: [2474, 1366]
  Art Gallery (Second Floor):
    fold_into: Art Gallery
  Art Gallery (Third Floor):
    fold_into: Art Gallery
  Art Gallery (Fourth Floor):
    fold_into: Art Gallery
  Challenge Room:
    map: [1486, 1357]
  Horizon's Edge:
    map: [779, 96]
  Behind A Smile:
    map: [1666, 1576]
  Sixteen Colorful Squares:
    map: [1913, 2182]
  Beneath The Lookout:
    map: [2544, 1702]
  Rooftop Staircase:
    map: [1815, 1517]
  Among Treetops:
    fold_into: Courtyard
  The Optimistic:
    map: [2420, 1000]