diff options
Diffstat (limited to 'src/tracker_state.h')
-rw-r--r-- | src/tracker_state.h | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/tracker_state.h b/src/tracker_state.h index 879e6f2..d8256e2 100644 --- a/src/tracker_state.h +++ b/src/tracker_state.h | |||
@@ -1,19 +1,8 @@ | |||
1 | #ifndef TRACKER_STATE_H_8639BC90 | 1 | #ifndef TRACKER_STATE_H_8639BC90 |
2 | #define TRACKER_STATE_H_8639BC90 | 2 | #define TRACKER_STATE_H_8639BC90 |
3 | 3 | ||
4 | #include <map> | 4 | void RecalculateReachability(); |
5 | #include <tuple> | ||
6 | 5 | ||
7 | class TrackerState { | 6 | bool IsLocationReachable(int area_id, int section_id); |
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 | 7 | ||
19 | #endif /* end of include guard: TRACKER_STATE_H_8639BC90 */ | 8 | #endif /* end of include guard: TRACKER_STATE_H_8639BC90 */ |