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-02-26 19:15:20 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2024-02-26 19:15:20 -0500
commitefa0587b4399a45faecf5aa941ff75a40595a124 (patch)
tree508dcdf03ace7ad460d2196a92e2970c9551456c /src/game_data.h
parentb13d3678a9b09ba5dd8a58a7ab441d1e09ee5b77 (diff)
downloadlingo-ap-tracker-efa0587b4399a45faecf5aa941ff75a40595a124.tar.gz
lingo-ap-tracker-efa0587b4399a45faecf5aa941ff75a40595a124.tar.bz2
lingo-ap-tracker-efa0587b4399a45faecf5aa941ff75a40595a124.zip
Added real pilgrimage detection
Diffstat (limited to 'src/game_data.h')
-rw-r--r--src/game_data.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/game_data.h b/src/game_data.h index c230034..2c18588 100644 --- a/src/game_data.h +++ b/src/game_data.h
@@ -23,6 +23,14 @@ constexpr int kLOCATION_NORMAL = 1;
23constexpr int kLOCATION_REDUCED = 2; 23constexpr int kLOCATION_REDUCED = 2;
24constexpr int kLOCATION_INSANITY = 4; 24constexpr int kLOCATION_INSANITY = 4;
25 25
26enum class EntranceType {
27 kNormal,
28 kPainting,
29 kSunwarp,
30 kWarp,
31 kPilgrimage,
32};
33
26struct Panel { 34struct Panel {
27 int id; 35 int id;
28 int room; 36 int room;
@@ -66,9 +74,7 @@ struct Door {
66struct Exit { 74struct Exit {
67 int destination_room; 75 int destination_room;
68 std::optional<int> door; 76 std::optional<int> door;
69 bool painting = false; 77 EntranceType type = EntranceType::kNormal;
70 bool sunwarp = false;
71 bool pilgrimage = false;
72}; 78};
73 79
74struct PaintingExit { 80struct PaintingExit {
@@ -109,10 +115,10 @@ int GD_GetRoomByName(const std::string& name);
109const Room& GD_GetRoom(int room_id); 115const Room& GD_GetRoom(int room_id);
110const std::vector<Door>& GD_GetDoors(); 116const std::vector<Door>& GD_GetDoors();
111const Door& GD_GetDoor(int door_id); 117const Door& GD_GetDoor(int door_id);
118int GD_GetDoorByName(const std::string& name);
112const Panel& GD_GetPanel(int panel_id); 119const Panel& GD_GetPanel(int panel_id);
113int GD_GetRoomForPainting(const std::string& painting_id); 120int GD_GetRoomForPainting(const std::string& painting_id);
114const std::vector<int>& GD_GetAchievementPanels(); 121const std::vector<int>& GD_GetAchievementPanels();
115int GD_GetItemIdForColor(LingoColor color); 122int GD_GetItemIdForColor(LingoColor color);
116const std::vector<int>& GD_GetPilgrimageDoors(bool include_sunwarps);
117 123
118#endif /* end of include guard: GAME_DATA_H_9C42AC51 */ 124#endif /* end of include guard: GAME_DATA_H_9C42AC51 */