From 70f1c629a6e08e0f9c58707f0470e08c6ffeca34 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Tue, 2 May 2023 20:14:43 -0400 Subject: Added reachability checking (only no doors rn) --- game_data.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'game_data.h') 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 { const MapArea& GetMapArea(int id) const { return map_areas_.at(id); } + int GetRoomByName(const std::string& name) const { + return room_by_id_.at(name); + } + + const Room& GetRoom(int room_id) const { return rooms_.at(room_id); } + + const Door& GetDoor(int door_id) const { return doors_.at(door_id); } + + const Panel& GetPanel(int panel_id) const { return panels_.at(panel_id); } + private: int AddOrGetRoom(std::string room); int AddOrGetDoor(std::string room, std::string door); -- cgit 1.4.1