about summary refs log tree commit diff stats
path: root/src/tracker_state.h
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-05-05 16:35:09 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-05-05 16:35:09 -0400
commitd7212d755dca7f4fd99cf4b775cd0d372d7bcbb2 (patch)
treea4ca0258eda334c4aa68073355b9f4ccd8a7bdef /src/tracker_state.h
parent017df1397ace9ab8c3f152362d07871dcb6858be (diff)
downloadlingo-ap-tracker-d7212d755dca7f4fd99cf4b775cd0d372d7bcbb2.tar.gz
lingo-ap-tracker-d7212d755dca7f4fd99cf4b775cd0d372d7bcbb2.tar.bz2
lingo-ap-tracker-d7212d755dca7f4fd99cf4b775cd0d372d7bcbb2.zip
Refactored away singletons
(Except TrackerConfig, for now at least)
Diffstat (limited to 'src/tracker_state.h')
-rw-r--r--src/tracker_state.h15
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> 4void RecalculateReachability();
5#include <tuple>
6 5
7class TrackerState { 6bool 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
17TrackerState& GetTrackerState();
18 7
19#endif /* end of include guard: TRACKER_STATE_H_8639BC90 */ 8#endif /* end of include guard: TRACKER_STATE_H_8639BC90 */