about summary refs log tree commit diff stats
path: root/tracker_state.h
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-05-02 20:14:43 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-05-02 20:14:43 -0400
commit70f1c629a6e08e0f9c58707f0470e08c6ffeca34 (patch)
treea2262b898f02c551d3de298ffbd61505cdd384d2 /tracker_state.h
parent09d67fbad9df92caf2251d36b4abd7979fd27126 (diff)
downloadlingo-ap-tracker-70f1c629a6e08e0f9c58707f0470e08c6ffeca34.tar.gz
lingo-ap-tracker-70f1c629a6e08e0f9c58707f0470e08c6ffeca34.tar.bz2
lingo-ap-tracker-70f1c629a6e08e0f9c58707f0470e08c6ffeca34.zip
Added reachability checking (only no doors rn)
Diffstat (limited to 'tracker_state.h')
-rw-r--r--tracker_state.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/tracker_state.h b/tracker_state.h new file mode 100644 index 0000000..879e6f2 --- /dev/null +++ b/tracker_state.h
@@ -0,0 +1,19 @@
1#ifndef TRACKER_STATE_H_8639BC90
2#define TRACKER_STATE_H_8639BC90
3
4#include <map>
5#include <tuple>
6
7class TrackerState {
8 public:
9 void CalculateState();
10
11 bool IsLocationReachable(int area_id, int section_id);
12
13 private:
14 std::map<std::tuple<int, int>, bool> reachability_;
15};
16
17TrackerState& GetTrackerState();
18
19#endif /* end of include guard: TRACKER_STATE_H_8639BC90 */