Adds getter for checking if a slot is unfillable
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
bc1f78c8bd
commit
4f77d30a7d
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue