diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-02-26 19:15:20 -0500 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-02-26 19:15:20 -0500 |
| commit | efa0587b4399a45faecf5aa941ff75a40595a124 (patch) | |
| tree | 508dcdf03ace7ad460d2196a92e2970c9551456c /src/game_data.h | |
| parent | b13d3678a9b09ba5dd8a58a7ab441d1e09ee5b77 (diff) | |
| download | lingo-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.h | 14 |
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; | |||
| 23 | constexpr int kLOCATION_REDUCED = 2; | 23 | constexpr int kLOCATION_REDUCED = 2; |
| 24 | constexpr int kLOCATION_INSANITY = 4; | 24 | constexpr int kLOCATION_INSANITY = 4; |
| 25 | 25 | ||
| 26 | enum class EntranceType { | ||
| 27 | kNormal, | ||
| 28 | kPainting, | ||
| 29 | kSunwarp, | ||
| 30 | kWarp, | ||
| 31 | kPilgrimage, | ||
| 32 | }; | ||
| 33 | |||
| 26 | struct Panel { | 34 | struct Panel { |
| 27 | int id; | 35 | int id; |
| 28 | int room; | 36 | int room; |
| @@ -66,9 +74,7 @@ struct Door { | |||
| 66 | struct Exit { | 74 | struct 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 | ||
| 74 | struct PaintingExit { | 80 | struct PaintingExit { |
| @@ -109,10 +115,10 @@ int GD_GetRoomByName(const std::string& name); | |||
| 109 | const Room& GD_GetRoom(int room_id); | 115 | const Room& GD_GetRoom(int room_id); |
| 110 | const std::vector<Door>& GD_GetDoors(); | 116 | const std::vector<Door>& GD_GetDoors(); |
| 111 | const Door& GD_GetDoor(int door_id); | 117 | const Door& GD_GetDoor(int door_id); |
| 118 | int GD_GetDoorByName(const std::string& name); | ||
| 112 | const Panel& GD_GetPanel(int panel_id); | 119 | const Panel& GD_GetPanel(int panel_id); |
| 113 | int GD_GetRoomForPainting(const std::string& painting_id); | 120 | int GD_GetRoomForPainting(const std::string& painting_id); |
| 114 | const std::vector<int>& GD_GetAchievementPanels(); | 121 | const std::vector<int>& GD_GetAchievementPanels(); |
| 115 | int GD_GetItemIdForColor(LingoColor color); | 122 | int GD_GetItemIdForColor(LingoColor color); |
| 116 | const 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 */ |
