C interface for Battle Side.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-04-04 17:03:06 +02:00
parent 3429f1647c
commit 3dd5aeffd8
4 changed files with 57 additions and 15 deletions

View File

@@ -5,7 +5,7 @@
using namespace CreatureLib::Battling;
bool BattleSide::AllChoicesSet() const { return _choicesSet == _creaturesPerSide; }
bool BattleSide::AllChoicesSet() const noexcept { return _choicesSet == _creaturesPerSide; }
bool BattleSide::AllPossibleSlotsFilled() const {
AssertNotNull(_battle)
@@ -19,14 +19,14 @@ bool BattleSide::AllPossibleSlotsFilled() const {
return true;
}
void BattleSide::ResetChoices() {
void BattleSide::ResetChoices() noexcept {
_choicesSet = 0;
for (uint8_t i = 0; i < _creaturesPerSide; i++) {
_choices[i] = nullptr;
}
}
const List<BaseTurnChoice*>& BattleSide::GetChoices() const { return _choices; }
const List<BaseTurnChoice*>& BattleSide::GetChoices() const noexcept { return _choices; }
void BattleSide::SetChoice(BaseTurnChoice* choice) {
AssertNotNull(choice)