getLevel
This commit is contained in:
parent
9563f968c8
commit
54a555640f
|
@ -27,6 +27,8 @@ public:
|
||||||
|
|
||||||
virtual void printDebug() const override;
|
virtual void printDebug() const override;
|
||||||
|
|
||||||
|
virtual const std::vector<std::shared_ptr<BeatLevel>>& getLevel() const override;
|
||||||
|
|
||||||
virtual BeatmapCharacteristic::BeatmapCharacteristic getCharacteristic() const override;
|
virtual BeatmapCharacteristic::BeatmapCharacteristic getCharacteristic() const override;
|
||||||
virtual std::shared_ptr<BeatMap> getBeatMap() const override;
|
virtual std::shared_ptr<BeatMap> getBeatMap() const override;
|
||||||
};
|
};
|
||||||
|
|
|
@ -16,6 +16,8 @@ public:
|
||||||
|
|
||||||
virtual void printDebug() const = 0;
|
virtual void printDebug() const = 0;
|
||||||
|
|
||||||
|
virtual const std::vector<std::shared_ptr<BeatLevel>>& getLevel() const = 0;
|
||||||
|
|
||||||
virtual BeatmapCharacteristic::BeatmapCharacteristic getCharacteristic() const = 0;
|
virtual BeatmapCharacteristic::BeatmapCharacteristic getCharacteristic() const = 0;
|
||||||
virtual std::shared_ptr<BeatMap> getBeatMap() const = 0;
|
virtual std::shared_ptr<BeatMap> getBeatMap() const = 0;
|
||||||
};
|
};
|
||||||
|
|
|
@ -36,13 +36,18 @@ bool BeatSetImpl::load() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void BeatSetImpl::printDebug() const {
|
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) {
|
for(auto it : level) {
|
||||||
it->printDebug();
|
it->printDebug();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const std::vector<std::shared_ptr<BeatLevel>>& BeatSetImpl::getLevel() const {
|
||||||
|
return level;
|
||||||
|
}
|
||||||
|
|
||||||
BeatmapCharacteristic::BeatmapCharacteristic BeatSetImpl::getCharacteristic() const {
|
BeatmapCharacteristic::BeatmapCharacteristic BeatSetImpl::getCharacteristic() const {
|
||||||
return characteristic;
|
return characteristic;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue