update generator with hint stuff

This commit is contained in:
gymnast86
2026-08-02 01:25:06 -07:00
parent 631cb99208
commit 66f6942dbb
35 changed files with 2266 additions and 198 deletions
+34 -3
View File
@@ -10,7 +10,8 @@ namespace randomizer::logic::location
const std::unordered_set<std::string>& categories,
world::World* world,
item::Item* originalItem,
const bool& goalLocation,
bool goalLocation,
const std::string& goalName,
const std::string& hintPriority,
const YAML::Node& metadata):
_id(id),
@@ -19,6 +20,7 @@ namespace randomizer::logic::location
_world(world),
_originalItem(originalItem),
_goalLocation(goalLocation),
_goalName(goalName),
_hintPriority(hintPriority),
_metadata(metadata)
{
@@ -45,6 +47,10 @@ namespace randomizer::logic::location
return this->_goalLocation;
}
const std::string& Location::GetGoalName() const {
return this->_goalName;
}
void Location::SetCurrentItem(item::Item* item)
{
LOG_TO_DEBUG("Placed " + item->GetName() + " at " + this->GetName());
@@ -77,7 +83,7 @@ namespace randomizer::logic::location
return this->_trackedItem;
}
void Location::SetKnownVanillaItem(const bool& hasKnownVanillaItem)
void Location::SetKnownVanillaItem(bool hasKnownVanillaItem)
{
this->_hasKnownVanillaItem = hasKnownVanillaItem;
}
@@ -87,6 +93,15 @@ namespace randomizer::logic::location
return this->_hasKnownVanillaItem;
}
void Location::SetExpectedItem(bool hasExpectedItem) {
this->_hasExpectedItem = hasExpectedItem;
}
bool Location::HasExpectedItem() const {
return this->_hasExpectedItem || this->_hasKnownVanillaItem;
}
void Location::SetProgression(const bool& progression)
{
this->_progression = progression;
@@ -149,6 +164,22 @@ namespace randomizer::logic::location
this->_registeredLocationCategories = registeredLocationCategories;
}
void Location::AddPathLocation(Location* location) {
this->_pathLocations.push_back(location);
}
std::vector<Location*>& Location::GetPathLocations() {
return this->_pathLocations;
}
void Location::SetImportance(Importance importance) {
this->_importance = importance;
}
Importance Location::GetImportance() const {
return this->_importance;
}
const std::set<std::string>& GetAllRandomizerLocationNames() {
static std::set<std::string> locationNames{};
@@ -161,4 +192,4 @@ namespace randomizer::logic::location
return locationNames;
}
} // namespace randomizer::logic::location
} // namespace randomizer::logic::location