diff options
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); |