diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-06-06 13:53:20 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-06-06 13:53:20 -0400 |
commit | 67a2efe7be6f4872adca8d944ebf403046472a98 (patch) | |
tree | 63f30a28c2c32ab03f9dfccc1c50567a0f03d3cc /src/game_data.h | |
parent | 78ac9905e222c26758e95b098d2e3a3e74a48839 (diff) | |
download | lingo-ap-tracker-67a2efe7be6f4872adca8d944ebf403046472a98.tar.gz lingo-ap-tracker-67a2efe7be6f4872adca8d944ebf403046472a98.tar.bz2 lingo-ap-tracker-67a2efe7be6f4872adca8d944ebf403046472a98.zip |
Proper painting reachability detection
Diffstat (limited to 'src/game_data.h')
-rw-r--r-- | src/game_data.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/game_data.h b/src/game_data.h index 68ba5e4..e0942f7 100644 --- a/src/game_data.h +++ b/src/game_data.h | |||
@@ -87,14 +87,16 @@ struct Exit { | |||
87 | }; | 87 | }; |
88 | 88 | ||
89 | struct PaintingExit { | 89 | struct PaintingExit { |
90 | std::string id; | 90 | int id; |
91 | int room; | ||
92 | std::string internal_id; | ||
91 | std::optional<int> door; | 93 | std::optional<int> door; |
92 | }; | 94 | }; |
93 | 95 | ||
94 | struct Room { | 96 | struct Room { |
95 | std::string name; | 97 | std::string name; |
96 | std::vector<Exit> exits; | 98 | std::vector<Exit> exits; |
97 | std::vector<PaintingExit> paintings; | 99 | std::vector<int> paintings; |
98 | std::vector<int> sunwarps; | 100 | std::vector<int> sunwarps; |
99 | std::vector<int> panels; | 101 | std::vector<int> panels; |
100 | }; | 102 | }; |
@@ -113,7 +115,7 @@ struct MapArea { | |||
113 | int id; | 115 | int id; |
114 | std::string name; | 116 | std::string name; |
115 | std::vector<Location> locations; | 117 | std::vector<Location> locations; |
116 | std::vector<PaintingExit> paintings; | 118 | std::vector<int> paintings; |
117 | int map_x; | 119 | int map_x; |
118 | int map_y; | 120 | int map_y; |
119 | int classification = 0; | 121 | int classification = 0; |
@@ -152,7 +154,8 @@ const std::vector<Door>& GD_GetDoors(); | |||
152 | const Door& GD_GetDoor(int door_id); | 154 | const Door& GD_GetDoor(int door_id); |
153 | int GD_GetDoorByName(const std::string& name); | 155 | int GD_GetDoorByName(const std::string& name); |
154 | const Panel& GD_GetPanel(int panel_id); | 156 | const Panel& GD_GetPanel(int panel_id); |
155 | int GD_GetRoomForPainting(const std::string& painting_id); | 157 | const PaintingExit& GD_GetPaintingExit(int painting_id); |
158 | int GD_GetPaintingByName(const std::string& name); | ||
156 | const std::vector<int>& GD_GetAchievementPanels(); | 159 | const std::vector<int>& GD_GetAchievementPanels(); |
157 | int GD_GetItemIdForColor(LingoColor color); | 160 | int GD_GetItemIdForColor(LingoColor color); |
158 | const std::vector<int>& GD_GetSunwarpDoors(); | 161 | const std::vector<int>& GD_GetSunwarpDoors(); |