about summary refs log tree commit diff stats
path: root/game_data.h
diff options
context:
space:
mode:
Diffstat (limited to 'game_data.h')
-rw-r--r--game_data.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/game_data.h b/game_data.h index 2df8bc5..0cc7a7b 100644 --- a/game_data.h +++ b/game_data.h
@@ -28,6 +28,7 @@ struct Panel {
28 std::vector<int> required_doors; 28 std::vector<int> required_doors;
29 bool check = false; 29 bool check = false;
30 bool exclude_reduce = false; 30 bool exclude_reduce = false;
31 bool achievement = false;
31}; 32};
32 33
33struct ProgressiveRequirement { 34struct ProgressiveRequirement {
@@ -104,6 +105,10 @@ class GameData {
104 return room_by_painting_.at(painting_id); 105 return room_by_painting_.at(painting_id);
105 } 106 }
106 107
108 const std::vector<int>& GetAchievementPanels() const {
109 return achievement_panels_;
110 }
111
107 private: 112 private:
108 int AddOrGetRoom(std::string room); 113 int AddOrGetRoom(std::string room);
109 int AddOrGetDoor(std::string room, std::string door); 114 int AddOrGetDoor(std::string room, std::string door);
@@ -121,6 +126,8 @@ class GameData {
121 std::map<std::string, int> area_by_id_; 126 std::map<std::string, int> area_by_id_;
122 127
123 std::map<std::string, int> room_by_painting_; 128 std::map<std::string, int> room_by_painting_;
129
130 std::vector<int> achievement_panels_;
124}; 131};
125 132
126const GameData& GetGameData(); 133const GameData& GetGameData();