about summary refs log tree commit diff stats
path: root/game_data.h
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-05-05 12:56:06 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-05-05 12:56:06 -0400
commitb6628ef515a57e5ba22aefb3ec5e6f7f60554e41 (patch)
treee558a3965565e4e504cdc811a0a8bc87274890b1 /game_data.h
parentdbbde171593492396c702528004d6b49de6c0d51 (diff)
downloadlingo-ap-tracker-b6628ef515a57e5ba22aefb3ec5e6f7f60554e41.tar.gz
lingo-ap-tracker-b6628ef515a57e5ba22aefb3ec5e6f7f60554e41.tar.bz2
lingo-ap-tracker-b6628ef515a57e5ba22aefb3ec5e6f7f60554e41.zip
Added support for variable THE MASTER
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();