Store time in turn execution on battle class.
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
2020-08-28 12:24:10 +02:00
parent d2e72deeca
commit 32f75f4a47
3 changed files with 9 additions and 1 deletions

View File

@@ -34,6 +34,7 @@ namespace CreatureLib::Battling {
uint32_t _currentTurn = 0;
ScriptSet _volatile;
long _lastTurnTime;
public:
Battle(const BattleLibrary* library, ArbUt::List<BattleParty*> parties, bool canFlee = true,
@@ -113,6 +114,8 @@ namespace CreatureLib::Battling {
, "Exception occurred during history element registration.");
}
const HistoryHolder& GetHistory() const noexcept { return _historyHolder; }
long GetLastTurnTimeMicroseconds() const noexcept { return _lastTurnTime; }
};
}