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 /game_data.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 'game_data.h')
-rw-r--r-- | game_data.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/game_data.h b/game_data.h index 4f93d92..ec3e94d 100644 --- a/game_data.h +++ b/game_data.h | |||
@@ -73,6 +73,16 @@ class GameData { | |||
73 | 73 | ||
74 | const MapArea& GetMapArea(int id) const { return map_areas_.at(id); } | 74 | const MapArea& GetMapArea(int id) const { return map_areas_.at(id); } |
75 | 75 | ||
76 | int GetRoomByName(const std::string& name) const { | ||
77 | return room_by_id_.at(name); | ||
78 | } | ||
79 | |||
80 | const Room& GetRoom(int room_id) const { return rooms_.at(room_id); } | ||
81 | |||
82 | const Door& GetDoor(int door_id) const { return doors_.at(door_id); } | ||
83 | |||
84 | const Panel& GetPanel(int panel_id) const { return panels_.at(panel_id); } | ||
85 | |||
76 | private: | 86 | private: |
77 | int AddOrGetRoom(std::string room); | 87 | int AddOrGetRoom(std::string room); |
78 | int AddOrGetDoor(std::string room, std::string door); | 88 | int AddOrGetDoor(std::string room, std::string door); |