about summary refs log tree commit diff stats
path: root/src/ap_state.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ap_state.h')
-rw-r--r--src/ap_state.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ap_state.h b/src/ap_state.h index 298df8c..8641000 100644 --- a/src/ap_state.h +++ b/src/ap_state.h
@@ -57,12 +57,12 @@ std::string AP_GetSaveName();
57 57
58bool AP_HasCheckedGameLocation(int location_id); 58bool AP_HasCheckedGameLocation(int location_id);
59 59
60bool AP_HasCheckedHuntPanel(int location_id);
61
62// This doesn't lock the state mutex, for speed, so it must ONLY be called from 60// This doesn't lock the state mutex, for speed, so it must ONLY be called from
63// RecalculateReachability, which is only called from the APState thread anyway. 61// RecalculateReachability, which is only called from the APState thread anyway.
64bool AP_HasItem(int item_id, int quantity = 1); 62bool AP_HasItem(int item_id, int quantity = 1);
65 63
64bool AP_HasItemSafe(int item_id, int quantity = 1);
65
66// This doesn't lock the client mutex because it is ONLY to be called from 66// This doesn't lock the client mutex because it is ONLY to be called from
67// RecalculateReachability, which is only called from within a client callback 67// RecalculateReachability, which is only called from within a client callback
68// anyway. 68// anyway.
@@ -120,4 +120,6 @@ bool AP_HasReachedGoal();
120 120
121std::optional<std::tuple<int, int>> AP_GetPlayerPosition(); 121std::optional<std::tuple<int, int>> AP_GetPlayerPosition();
122 122
123bool AP_IsPanelSolved(int solve_index);
124
123#endif /* end of include guard: AP_STATE_H_664A4180 */ 125#endif /* end of include guard: AP_STATE_H_664A4180 */