Implements running from battle.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2019-12-15 11:52:10 +01:00
parent 0fad615050
commit 6ba708ad12
16 changed files with 160 additions and 54 deletions

View File

@@ -15,6 +15,7 @@ namespace CreatureLib::Battling {
uint8_t _choicesSet = 0;
ScriptSet _volatile;
Battle* _battle;
bool _hasFled = false;
public:
explicit BattleSide(uint8_t index, Battle* battle, uint8_t creaturesPerSide)
@@ -74,6 +75,10 @@ namespace CreatureLib::Battling {
}
return true;
}
bool HasFled() { return _hasFled; }
void MarkAsFled() { _hasFled = true; }
};
}