parent
bc1f78c8bd
commit
4f77d30a7d
src/Battling/Models
|
@ -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 {
|
||||
for (auto b : _fillableSlots) {
|
||||
if (b)
|
||||
|
|
Loading…
Reference in New Issue