about summary refs log tree commit diff stats
path: root/src/game_data.h
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-06-06 13:53:20 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-06-06 13:53:20 -0400
commit67a2efe7be6f4872adca8d944ebf403046472a98 (patch)
tree63f30a28c2c32ab03f9dfccc1c50567a0f03d3cc /src/game_data.h
parent78ac9905e222c26758e95b098d2e3a3e74a48839 (diff)
downloadlingo-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.h11
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
89struct PaintingExit { 89struct 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
94struct Room { 96struct 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();
152const Door& GD_GetDoor(int door_id); 154const Door& GD_GetDoor(int door_id);
153int GD_GetDoorByName(const std::string& name); 155int GD_GetDoorByName(const std::string& name);
154const Panel& GD_GetPanel(int panel_id); 156const Panel& GD_GetPanel(int panel_id);
155int GD_GetRoomForPainting(const std::string& painting_id); 157const PaintingExit& GD_GetPaintingExit(int painting_id);
158int GD_GetPaintingByName(const std::string& name);
156const std::vector<int>& GD_GetAchievementPanels(); 159const std::vector<int>& GD_GetAchievementPanels();
157int GD_GetItemIdForColor(LingoColor color); 160int GD_GetItemIdForColor(LingoColor color);
158const std::vector<int>& GD_GetSunwarpDoors(); 161const std::vector<int>& GD_GetSunwarpDoors();