1#ifndef YAZE_SRC_ZELDA3_DUNGEON_DUNGEON_LIMITS_H_
2#define YAZE_SRC_ZELDA3_DUNGEON_DUNGEON_LIMITS_H_
35inline constexpr int kNoHardLimit = std::numeric_limits<int>::max();
61 return "Tile Objects";
73 return "Special Doors";
75 return "Stairs (Transition)";
83 return "Somaria Line";
85 return "Stairs North";
87 return "Stairs South";
89 return "General Manipulable";
143 for (
const auto& [limit, count] : counts) {
148 if (count > max_val) {
157 const std::map<DungeonLimit, int>& counts) {
158 std::vector<DungeonLimitInfo> result;
159 for (
const auto& [limit, count] : counts) {
164 if (count > max_val) {
Zelda 3 specific classes and functions.
constexpr size_t kMaxBg3Objects
std::vector< DungeonLimitInfo > GetExceededLimits(const std::map< DungeonLimit, int > &counts)
constexpr int kNoHardLimit
constexpr size_t kMaxTileObjects
constexpr int GetDungeonLimitMax(DungeonLimit limit)
bool HasExceededLimits(const std::map< DungeonLimit, int > &counts)
constexpr size_t kMaxDoors
constexpr size_t kMaxActiveSprites
constexpr const char * GetDungeonLimitLabel(DungeonLimit limit)
std::map< DungeonLimit, int > CreateLimitCounter()
constexpr size_t kMaxChests
constexpr size_t kMaxTotalSprites