Adds getter for checking if a slot is unfillable
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -78,6 +78,16 @@ namespace CreatureLib::Battling {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline bool IsSlotUnfillabe(const ArbUt::BorrowedPtr<Creature>& creature) const noexcept {
|
||||||
|
for (u8 i = 0; i < _creaturesPerSide; i++) {
|
||||||
|
if (!_creatures[i].HasValue())
|
||||||
|
continue;
|
||||||
|
if (_creatures[i].GetValue() == creature) {
|
||||||
|
return _fillableSlots.At(i) l
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bool IsDefeated() noexcept {
|
bool IsDefeated() noexcept {
|
||||||
for (auto b : _fillableSlots) {
|
for (auto b : _fillableSlots) {
|
||||||
if (b)
|
if (b)
|
||||||
|
|||||||
Reference in New Issue
Block a user