This commit is contained in:
mrbesen 2021-06-14 12:28:52 +02:00
parent 9563f968c8
commit 54a555640f
Signed by: MrBesen
GPG Key ID: 596B2350DCD67504
3 changed files with 10 additions and 1 deletions

View File

@ -27,6 +27,8 @@ public:
virtual void printDebug() const override;
virtual const std::vector<std::shared_ptr<BeatLevel>>& getLevel() const override;
virtual BeatmapCharacteristic::BeatmapCharacteristic getCharacteristic() const override;
virtual std::shared_ptr<BeatMap> getBeatMap() const override;
};

View File

@ -16,6 +16,8 @@ public:
virtual void printDebug() const = 0;
virtual const std::vector<std::shared_ptr<BeatLevel>>& getLevel() const = 0;
virtual BeatmapCharacteristic::BeatmapCharacteristic getCharacteristic() const = 0;
virtual std::shared_ptr<BeatMap> getBeatMap() const = 0;
};

View File

@ -36,13 +36,18 @@ bool BeatSetImpl::load() {
}
void BeatSetImpl::printDebug() const {
std::cout << " Characteristic: " << BeatmapCharacteristic::toString(characteristic) << std::endl;
std::cout << " Characteristic: " << BeatmapCharacteristic::toString(characteristic)
<< "\n Levels: " << level.size() << std::endl;
for(auto it : level) {
it->printDebug();
}
}
const std::vector<std::shared_ptr<BeatLevel>>& BeatSetImpl::getLevel() const {
return level;
}
BeatmapCharacteristic::BeatmapCharacteristic BeatSetImpl::getCharacteristic() const {
return characteristic;
}