2020-08-14 15:24:12 +00:00
|
|
|
#include "../../src/Battling/History/HistoryElements/AttackUseHistory.hpp"
|
|
|
|
#include "../../src/Battling/History/HistoryHolder.hpp"
|
|
|
|
#include "../Core.hpp"
|
|
|
|
using namespace CreatureLib::Battling;
|
|
|
|
|
|
|
|
export const HistoryElement* CreatureLib_HistoryHandler_GetTopElement(const HistoryHolder* p) {
|
2021-10-23 14:57:58 +00:00
|
|
|
return p->GetTopElement().GetValue();
|
2020-08-14 15:24:12 +00:00
|
|
|
}
|
|
|
|
export const HistoryElement* CreatureLib_HistoryHandler_GetLastUsedAttack(const HistoryHolder* p) {
|
2021-10-23 14:57:58 +00:00
|
|
|
return p->GetLastUsedAttack().GetValue();
|
2020-08-14 15:24:12 +00:00
|
|
|
}
|
|
|
|
|
2021-10-23 15:08:54 +00:00
|
|
|
export const HistoryElement* CreatureLib_HistoryHandler_GetLastDamageOnTarget(const HistoryHolder* p,
|
|
|
|
const Creature* c) {
|
|
|
|
return p->GetLastDamageOnTarget(c).GetValue();
|
|
|
|
}
|
|
|
|
|
2020-08-14 15:24:12 +00:00
|
|
|
export HistoryElementKind CreatureLib_HistoryElement_GetKind(const HistoryElement* p) { return p->GetKind(); }
|
|
|
|
export const HistoryElement* CreatureLib_HistoryElement_GetPrevious(const HistoryElement* p) {
|
2021-10-23 14:57:58 +00:00
|
|
|
return p->GetPrevious().GetValue();
|
2020-08-14 15:24:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export const ExecutingAttack* CreatureLib_AttackUseHistory_GetAttack(const AttackUseHistory* p) {
|
|
|
|
return p->GetAttack().GetRaw();
|
|
|
|
}
|