1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

- Pre-distribute max number of Prisons

- Minor refactor for artifact and hero pool management
This commit is contained in:
Tomasz Zieliński
2023-05-05 10:30:36 +02:00
parent d137f7157c
commit eb50ae3aa7
7 changed files with 82 additions and 30 deletions

View File

@@ -63,9 +63,10 @@ public:
int getNextMonlithIndex();
int getPrisonsRemaning() const;
std::shared_ptr<CZonePlacer> getZonePlacer() const;
void decreasePrisonsRemaining();
const std::vector<ArtifactID> & getQuestArtsRemaning() const;
const std::vector<ArtifactID> & getAllPossibleQuestArtifacts() const;
const std::vector<HeroTypeID>& getAllPossibleHeroes() const;
void banQuestArt(const ArtifactID & id);
void banHero(const HeroTypeID& id);
Zone * getZoneWater() const;
void addWaterTreasuresInfo();
@@ -83,8 +84,7 @@ private:
//std::pair<Zones::key_type, Zones::mapped_type> zoneWater;
int prisonsRemaining;
//int questArtsRemaining;
int allowedPrisons;
int monolithIndex;
std::vector<ArtifactID> questArtifacts; //TODO: Protect with mutex