diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-05-02 20:14:43 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-05-02 20:14:43 -0400 |
commit | 70f1c629a6e08e0f9c58707f0470e08c6ffeca34 (patch) | |
tree | a2262b898f02c551d3de298ffbd61505cdd384d2 /tracker_state.h | |
parent | 09d67fbad9df92caf2251d36b4abd7979fd27126 (diff) | |
download | lingo-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.h | 19 |
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 | |||
7 | class 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 | |||
17 | TrackerState& GetTrackerState(); | ||
18 | |||
19 | #endif /* end of include guard: TRACKER_STATE_H_8639BC90 */ | ||